gimp r27895 - in trunk: . app/widgets



Author: mitch
Date: Sun Jan  4 19:45:07 2009
New Revision: 27895
URL: http://svn.gnome.org/viewvc/gimp?rev=27895&view=rev

Log:
2009-01-04  Michael Natterer  <mitch gimp org>

	* app/widgets/gimpcombotagentry.c
	(gimp_combo_tag_entry_constructor): connect to entry->container's
	signals with g_signal_connect_object() so the entry can be
	destroyed without warning/crashing.



Modified:
   trunk/ChangeLog
   trunk/app/widgets/gimpcombotagentry.c

Modified: trunk/app/widgets/gimpcombotagentry.c
==============================================================================
--- trunk/app/widgets/gimpcombotagentry.c	(original)
+++ trunk/app/widgets/gimpcombotagentry.c	Sun Jan  4 19:45:07 2009
@@ -122,7 +122,7 @@
                     NULL);
 }
 
-static GObject*
+static GObject *
 gimp_combo_tag_entry_constructor (GType                  type,
                                   guint                  n_params,
                                   GObjectConstructParam *params)
@@ -136,10 +136,10 @@
 
   entry = GIMP_COMBO_TAG_ENTRY (object);
 
-  g_signal_connect (GIMP_TAG_ENTRY (entry)->container,
-                    "tag-count-changed",
-                    G_CALLBACK (gimp_combo_tag_entry_tag_count_changed),
-                    entry);
+  g_signal_connect_object (GIMP_TAG_ENTRY (entry)->container,
+                           "tag-count-changed",
+                           G_CALLBACK (gimp_combo_tag_entry_tag_count_changed),
+                           entry, 0);
 
   return object;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]