2003-12-08 Mike Kestner <mkestner@ximian.com>

* glue/type.c : new glue for g_signal_override_class_closure

svn path=/trunk/gtk-sharp/; revision=20885
This commit is contained in:
Mike Kestner 2003-12-08 18:59:16 +00:00
parent 90130994c0
commit fb9e8980a4
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2003-12-08 Mike Kestner <mkestner@ximian.com>
* glue/type.c : new glue for g_signal_override_class_closure
2003-12-07 Mike Kestner <mkestner@ximian.com>
* gnome/Gnome.metadata : About ctor's logo_pixbuf is null_ok

View file

@ -20,6 +20,8 @@ GType gtksharp_get_parent_type (GType typ);
G_CONST_RETURN gchar *gtksharp_get_type_name_for_id (GType typ);
GType gtksharp_register_type (gchar *name, GType parent);
void gtksharp_override_virtual_method (GType g_type, const gchar *name, GCallback callback);
/* */
G_CONST_RETURN gchar *
@ -65,3 +67,11 @@ gtksharp_register_type (gchar *name, GType parent)
return g_type_register_static (parent, name, &info, 0);
}
void
gtksharp_override_virtual_method (GType g_type, const gchar *name, GCallback callback)
{
guint id = g_signal_lookup (name, g_type);
GClosure *closure = g_cclosure_new (callback, NULL, NULL);
g_signal_override_class_closure (id, g_type, closure);
}