[nautilus] application: destroy all the widgets when quitting
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] application: destroy all the widgets when quitting
- Date: Mon, 13 Dec 2010 18:55:40 +0000 (UTC)
commit 00e0ae826765aeca4c203b77a5caec4ce2be2fd7
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Dec 13 19:52:24 2010 +0100
application: destroy all the widgets when quitting
Instead of calling _release().
src/nautilus-application.c | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 76099e4..29d4a45 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]