summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2009-10-11 20:32:53 (GMT)
committerVincent Untz <vuntz@gnome.org>2009-10-11 21:08:29 (GMT)
commitdd9df169196441717498ac09ee8c437fb552116e (patch)
tree446223958083a83fcdb5494c2a127129ad6e2cc9
parente97edcc49e77f38589155c3f65490cda5968e2bd (diff)
downloadgnome-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.c1
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 ();
}
}