Commit f81dedf3 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

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
parent 632ab5ed
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
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment