summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2010-12-13 19:52:24 +0100
committerCosimo Cecchi <cosimoc@gnome.org>2010-12-13 19:52:24 +0100
commit00e0ae826765aeca4c203b77a5caec4ce2be2fd7 (patch)
treeb228547370f782ee49ba74ca12daf85984d1f161
parentcaa55b7e757a49fb323450152e6a37e1d63eb9fb (diff)
downloadnautilus-00e0ae826765aeca4c203b77a5caec4ce2be2fd7.tar.gz
application: destroy all the widgets when quitting
Instead of calling _release().
-rw-r--r--src/nautilus-application.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 76099e49f..29d4a453d 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1292,18 +1292,10 @@ void
nautilus_application_quit (NautilusApplication *self)
{
GApplication *app = G_APPLICATION (self);
- gboolean exit_with_last_window;
+ GList *windows;
- exit_with_last_window =
- g_settings_get_boolean (nautilus_preferences,
- NAUTILUS_PREFERENCES_EXIT_WITH_LAST_WINDOW);
-
- nautilus_application_close_desktop ();
- g_application_release (app);
-
- if (!exit_with_last_window) {
- g_application_release (app);
- }
+ windows = gtk_application_get_windows (GTK_APPLICATION (app));
+ g_list_foreach (windows, (GFunc) gtk_widget_destroy, NULL);
}
static gint