mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
disconnect the GimpDeviceInfo::changed() signal handlers when the dialog
2003-07-17 Michael Natterer <mitch@gimp.org> * app/widgets/gimpdevicestatus.c (gimp_device_status_init): disconnect the GimpDeviceInfo::changed() signal handlers when the dialog goes away. Fixes bug #117609.
This commit is contained in:
parent
f6d87e7f1a
commit
03bc1fd429
|
@ -1,3 +1,9 @@
|
|||
2003-07-17 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/widgets/gimpdevicestatus.c (gimp_device_status_init):
|
||||
disconnect the GimpDeviceInfo::changed() signal handlers when
|
||||
the dialog goes away. Fixes bug #117609.
|
||||
|
||||
2003-07-16 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/vectors/gimpvectors.c (gimp_vectors_transform): invert the
|
||||
|
|
|
@ -160,15 +160,17 @@ gimp_device_status_init (GimpDeviceStatus *status)
|
|||
GimpDeviceStatusEntry *entry = &status->entries[i];
|
||||
gint row = i * 3;
|
||||
gchar *markup;
|
||||
GClosure *closure;
|
||||
|
||||
entry->device = GDK_DEVICE (list->data);
|
||||
|
||||
device_info = gimp_device_info_get_by_device (entry->device);
|
||||
context = GIMP_CONTEXT (device_info);
|
||||
|
||||
g_signal_connect (device_info, "changed",
|
||||
G_CALLBACK (gimp_device_status_update_entry),
|
||||
entry);
|
||||
closure = g_cclosure_new (G_CALLBACK (gimp_device_status_update_entry),
|
||||
entry, NULL);
|
||||
g_object_watch_closure (G_OBJECT (status), closure);
|
||||
g_signal_connect_closure (device_info, "changed", closure, FALSE);
|
||||
|
||||
/* the separator */
|
||||
|
||||
|
|
Loading…
Reference in a new issue