2004-01-20 John D. Hardin <jhardin@impsec.org>

* glue/type.c : ansi-c-ify some late var decls.

svn path=/trunk/gtk-sharp/; revision=22303
This commit is contained in:
Mike Kestner 2004-01-20 16:06:19 +00:00
parent 933a5ef73a
commit 4baa6d76e0
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2004-01-20 John D. Hardin <jhardin@impsec.org>
* glue/type.c : ansi-c-ify some late var decls.
2004-01-19 John Luke <jluke@cfl.rr.com>
* vte/Makefile.in: fix it so you can build without having

View File

@ -71,9 +71,11 @@ gtksharp_register_type (gchar *name, GType parent)
void
gtksharp_override_virtual_method (GType g_type, const gchar *name, GCallback callback)
{
guint id;
GClosure *closure;
if (g_type_class_peek (g_type) == NULL)
g_type_class_ref (g_type);
guint id = g_signal_lookup (name, g_type);
GClosure *closure = g_cclosure_new (callback, NULL, NULL);
id = g_signal_lookup (name, g_type);
closure = g_cclosure_new (callback, NULL, NULL);
g_signal_override_class_closure (id, g_type, closure);
}