mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 03:52:33 +00:00
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:
parent
632ab5ed5c
commit
f81dedf355
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue