Home | History | Annotate | Download | only in gobject

Lines Matching defs:closure

155 							 GClosure	 *closure,
218 #define TEST_CLASS_MAGIC (1) /* indicates NULL class closure, candidate for NOP optimization */
254 GClosure *closure;
265 GType instance_type; /* 0 for default closure */
266 GClosure *closure;
476 GClosure *closure,
500 ((mask & G_SIGNAL_MATCH_CLOSURE) || handler->closure == closure) &&
501 ((mask & G_SIGNAL_MATCH_DATA) || handler->closure->data == data) &&
503 ((mask & G_SIGNAL_MATCH_FUNC) || (handler->closure->marshal == node->c_marshaller &&
504 handler->closure->meta_marshal == 0 &&
505 ((GCClosure*) handler->closure)->callback == func)))
537 ((mask & G_SIGNAL_MATCH_CLOSURE) || handler->closure == closure) &&
538 ((mask & G_SIGNAL_MATCH_DATA) || handler->closure->data == data) &&
540 ((mask & G_SIGNAL_MATCH_FUNC) || (handler->closure->marshal == node->c_marshaller &&
541 handler->closure->meta_marshal == 0 &&
542 ((GCClosure*) handler->closure)->callback == func)))
571 handler->closure = NULL;
637 g_closure_unref (handler->closure);
1429 /* cc->instance_type is 0 for default closure */
1453 if (cc && cc->instance_type == 0) /* check for default closure */
1454 return cc->closure;
1457 return cc ? cc->closure : NULL;
1463 GClosure *closure)
1473 key.closure = g_closure_ref (closure);
1477 g_closure_sink (closure);
1478 if (node->c_marshaller && closure && G_CLOSURE_NEEDS_MARSHAL (closure))
1479 g_closure_set_marshal (closure, node->c_marshaller);
1490 * @class_closure: The closure to invoke on signal emission; may be %NULL
1648 * @class_closure: The closure to invoke on signal emission; may be %NULL.
1740 g_closure_unref (cc->closure);
1756 * @instance_type: the instance type on which to override the class closure
1758 * @class_closure: the closure.
1760 * Overrides the class closure (i.e. the default handler) for the given signal
1766 * parent class closure from inside the overridden one.
1801 * Overrides the class closure (i.e. the default handler) for the
1808 * parent class closure from inside the overridden one.
1841 * Calls the original class closure of a signal. This function should only
1842 * be called from an overridden class closure; see
1852 GClosure *closure = NULL;
1874 g_assert (cc != NULL); /* closure currently in call stack */
1881 closure = cc->closure;
1891 if (closure)
1895 g_closure_invoke (closure,
1909 * @...: parameters to be passed to the parent class closure, followed by a
1913 * Calls the original class closure of a signal. This function should
1914 * only be called from an overridden class closure; see
1926 GClosure *closure = NULL;
1946 g_assert (cc != NULL); /* closure currently in call stack */
1953 closure = cc->closure;
1963 if (closure)
2019 g_closure_invoke (closure,
2034 g_closure_invoke (closure,
2099 * @closure: the closure to connect.
2103 closure to a signal for a particular object.
2111 GClosure *closure,
2119 g_return_val_if_fail (closure != NULL, 0);
2135 handler->closure = g_closure_ref (closure);
2136 g_closure_sink (closure);
2138 if (node->c_marshaller && G_CLOSURE_NEEDS_MARSHAL (closure))
2139 g_closure_set_marshal (closure, node->c_marshaller);
2153 * @closure: the closure to connect.
2157 * Connects a closure to a signal for a particular object.
2164 GClosure *closure,
2174 g_return_val_if_fail (closure != NULL, 0);
2193 handler->closure = g_closure_ref (closure);
2194 g_closure_sink (closure);
2196 if (node->c_marshaller && G_CLOSURE_NEEDS_MARSHAL (handler->closure))
2197 g_closure_set_marshal (handler->closure, node->c_marshaller);
2262 handler->closure = g_closure_ref ((swapped ? g_cclosure_new_swap : g_cclosure_new) (c_handler, data, destroy_data));
2263 g_closure_sink (handler->closure);
2265 if (node->c_marshaller && G_CLOSURE_NEEDS_MARSHAL (handler->closure))
2266 g_closure_set_marshal (handler->closure, node->c_marshaller);
2462 * @mask: Mask indicating which of @signal_id, @detail, @closure, @func
2466 * @closure: The closure the handler will invoke.
2467 * @func: The C closure callback of the handler (useless for non-C closures).
2468 * @data: The closure data of the handler's closure.
2483 GClosure *closure,
2497 mlist = handlers_find (instance, mask, signal_id, detail, closure, func, data, TRUE);
2514 GClosure *closure,
2523 mlist = handlers_find (instance, mask, signal_id, detail, closure, func, data, FALSE);
2542 * @mask: Mask indicating which of @signal_id, @detail, @closure, @func
2546 * @closure: The closure the handlers will invoke.
2547 * @func: The C closure callback of the handlers (useless for non-C closures).
2548 * @data: The closure data of the handlers' closures.
2565 GClosure *closure,
2578 closure, func, data,
2589 * @mask: Mask indicating which of @signal_id, @detail, @closure, @func
2593 * @closure: The closure the handlers will invoke.
2594 * @func: The C closure callback of the handlers (useless for non-C closures).
2595 * @data: The closure data of the handlers' closures.
2613 GClosure *closure,
2626 closure, func, data,
2637 * @mask: Mask indicating which of @signal_id, @detail, @closure, @func
2641 * @closure: The closure the handlers will invoke.
2642 * @func: The C closure callback of the handlers (useless for non-C closures).
2643 * @data: The closure data of the handlers' closures.
2661 GClosure *closure,
2674 closure, func, data,
3247 g_closure_invoke (handler->closure,
3317 g_closure_invoke (handler->closure,