Home | History | Annotate | Download | only in gobject

Lines Matching defs:instance_type

265   GType     instance_type; /* 0 for default closure */
362 return G_BSEARCH_ARRAY_CMP (c1->instance_type, c2->instance_type);
1429 /* cc->instance_type is 0 for default closure */
1431 key.instance_type = itype;
1433 while (!cc && key.instance_type)
1435 key.instance_type = g_type_parent (key.instance_type);
1453 if (cc && cc->instance_type == 0) /* check for default closure */
1472 key.instance_type = itype;
1756 * @instance_type: the instance type on which to override the class closure
1761 * for emissions on instances of @instance_type. @instance_type must be derived
1770 GType instance_type,
1780 if (!g_type_is_a (instance_type, node->itype))
1781 g_warning ("%s: type `%s' cannot be overridden for signal id `%u'", G_STRLOC, type_debug_name (instance_type), signal_id);
1784 ClassClosure *cc = signal_find_class_closure (node, instance_type);
1786 if (cc && cc->instance_type == instance_type)
1787 g_warning ("%s: type `%s' is already overridden for signal id `%u'", G_STRLOC, type_debug_name (instance_type), signal_id);
1789 signal_add_class_closure (node, instance_type, class_closure);
1797 * @instance_type: the instance type on which to override the class handler
1802 * given signal for emissions on instances of @instance_type with
1803 * callabck @class_handler. @instance_type must be derived from the
1814 GType instance_type,
1820 g_return_if_fail (instance_type != G_TYPE_NONE);
1823 signal_id = g_signal_lookup (signal_name, instance_type);
1826 g_signal_override_class_closure (signal_id, instance_type,
1830 G_STRLOC, signal_name, instance_type);
1877 restore_type = cc->instance_type;
1878 cc = signal_find_class_closure (node, g_type_parent (cc->instance_type));
1879 if (cc && cc->instance_type != restore_type)
1882 chain_type = cc->instance_type;
1949 restore_type = cc->instance_type;
1950 cc = signal_find_class_closure (node, g_type_parent (cc->instance_type));
1951 if (cc && cc->instance_type != restore_type)
1954 chain_type = cc->instance_type;