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:
Michael Natterer 2003-07-17 11:30:41 +00:00 committed by Michael Natterer
parent f6d87e7f1a
commit 03bc1fd429
2 changed files with 11 additions and 3 deletions

View file

@ -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

View file

@ -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 */