From 4baa6d76e05869924bb67a78d3c27dd080f92b51 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Tue, 20 Jan 2004 16:06:19 +0000 Subject: [PATCH] 2004-01-20 John D. Hardin * glue/type.c : ansi-c-ify some late var decls. svn path=/trunk/gtk-sharp/; revision=22303 --- ChangeLog | 4 ++++ glue/type.c | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 352839813..c70ba533f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-01-20 John D. Hardin + + * glue/type.c : ansi-c-ify some late var decls. + 2004-01-19 John Luke * vte/Makefile.in: fix it so you can build without having diff --git a/glue/type.c b/glue/type.c index c607d942a..d9074ebc2 100644 --- a/glue/type.c +++ b/glue/type.c @@ -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); }