From: Jonathan Blandford Date: Wed, 21 Feb 2001 23:42:31 +0000 (+0000) Subject: Add g_signal_connect define to make porting from gtk_signal_connect easy. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=f3ec41e8d22b5fa99b93ea753acb0de873732e94;p=dana%2Fcg-glib.git Add g_signal_connect define to make porting from gtk_signal_connect easy. Wed Feb 21 18:31:46 2001 Jonathan Blandford * gsignal.h (g_signal_connect): Add g_signal_connect define to make porting from gtk_signal_connect easy. --- diff --git a/gobject/ChangeLog b/gobject/ChangeLog index a97faf0e..aa74a231 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,8 @@ +Wed Feb 21 18:31:46 2001 Jonathan Blandford + + * gsignal.h (g_signal_connect): Add g_signal_connect define to + make porting from gtk_signal_connect easy. + 2001-02-17 Havoc Pennington Applied patch from Soeren Sandmann: diff --git a/gobject/gsignal.c b/gobject/gsignal.c index 14a9cea3..c86533dd 100644 --- a/gobject/gsignal.c +++ b/gobject/gsignal.c @@ -1666,7 +1666,7 @@ g_signal_emit_valist (gpointer instance, } } instance_and_params->g_type = 0; - g_value_init (instance_and_params, node->itype); + g_value_init (instance_and_params, G_TYPE_FROM_INSTANCE (instance)); g_value_set_instance (instance_and_params, instance); if (node->return_type == G_TYPE_NONE) signal_emit_R (node, detail, instance, NULL, instance_and_params);