Add g_signal_connect define to make porting from gtk_signal_connect easy.
authorJonathan Blandford <jrb@redhat.com>
Wed, 21 Feb 2001 23:42:31 +0000 (23:42 +0000)
committerJonathan Blandford <jrb@src.gnome.org>
Wed, 21 Feb 2001 23:42:31 +0000 (23:42 +0000)
Wed Feb 21 18:31:46 2001  Jonathan Blandford  <jrb@redhat.com>

* gsignal.h (g_signal_connect): Add g_signal_connect define to
make porting from gtk_signal_connect easy.

gobject/ChangeLog
gobject/gsignal.c

index a97faf0..aa74a23 100644 (file)
@@ -1,3 +1,8 @@
+Wed Feb 21 18:31:46 2001  Jonathan Blandford  <jrb@redhat.com>
+
+       * gsignal.h (g_signal_connect): Add g_signal_connect define to
+       make porting from gtk_signal_connect easy.
+
 2001-02-17  Havoc Pennington  <hp@pobox.com>
 
         Applied patch from Soeren Sandmann:
index 14a9cea..c86533d 100644 (file)
@@ -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);