diff options
| author | Vincent Untz <vuntz@gnome.org> | 2009-10-11 20:32:53 (GMT) |
|---|---|---|
| committer | Vincent Untz <vuntz@gnome.org> | 2009-10-11 21:08:29 (GMT) |
| commit | dd9df169196441717498ac09ee8c437fb552116e (patch) | |
| tree | 446223958083a83fcdb5494c2a127129ad6e2cc9 | |
| parent | e97edcc49e77f38589155c3f65490cda5968e2bd (diff) | |
| download | gnome-session-dd9df169196441717498ac09ee8c437fb552116e.zip gnome-session-dd9df169196441717498ac09ee8c437fb552116e.tar.xz | |
[capplet] Destroy the main window on close to ensure changes are saved
For some reasons, sometimes it works, and sometimes it doesn't. By
destroying the window, we make sure all objects are disposed and the
changes are saved.
https://bugzilla.gnome.org/show_bug.cgi?id=597623
| -rw-r--r-- | capplet/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/capplet/main.c b/capplet/main.c index c8829a0..861e36a 100644 --- a/capplet/main.c +++ b/capplet/main.c @@ -70,6 +70,7 @@ dialog_response (GsmPropertiesDialog *dialog, gtk_widget_destroy (d); } } else { + gtk_widget_destroy (GTK_WIDGET (dialog)); gtk_main_quit (); } } |