connect to entry->container's signals with g_signal_connect_object() so

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.


svn path=/trunk/; revision=27895
This commit is contained in:
Michael Natterer 2009-01-04 19:45:07 +00:00 committed by Michael Natterer
parent 632ab5ed5c
commit f81dedf355
2 changed files with 12 additions and 5 deletions

View file

@ -1,3 +1,10 @@
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.
2009-01-04 Martin Nordholts <martinn@svn.gnome.org>
Bug 562818 First image opened in GIMP offset

View file

@ -122,7 +122,7 @@ gimp_combo_tag_entry_init (GimpComboTagEntry *entry)
NULL);
}
static GObject*
static GObject *
gimp_combo_tag_entry_constructor (GType type,
guint n_params,
GObjectConstructParam *params)
@ -136,10 +136,10 @@ gimp_combo_tag_entry_constructor (GType type,
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;
}