diff options
author | Marcus Carlson <mdc@src.gnome.org> | 2010-07-31 23:10:26 +0200 |
---|---|---|
committer | Marcus Carlson <mdc@src.gnome.org> | 2010-08-09 21:47:05 +0200 |
commit | 5319feba3457213b656575893eeb973bde37a722 (patch) | |
tree | 18e7eb3481e6fc4dc0a53baf6dc34ca809e60178 /src | |
parent | 59799e3e26476382ddd45d311e22db164474bbb2 (diff) | |
download | nautilus-5319feba3457213b656575893eeb973bde37a722.tar.gz |
Hide all windows before closing when closing all windows (#441095)
Diffstat (limited to 'src')
-rw-r--r-- | src/nautilus-application.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/nautilus-application.c b/src/nautilus-application.c index 91f4281b3..517779ebe 100644 --- a/src/nautilus-application.c +++ b/src/nautilus-application.c @@ -1147,6 +1147,17 @@ nautilus_application_close_all_navigation_windows (void) GList *l; list_copy = g_list_copy (nautilus_application_window_list); + /* First hide all window to get the feeling of quick response */ + for (l = list_copy; l != NULL; l = l->next) { + NautilusWindow *window; + + window = NAUTILUS_WINDOW (l->data); + + if (NAUTILUS_IS_NAVIGATION_WINDOW (window)) { + gtk_widget_hide (GTK_WIDGET (window)); + } + } + for (l = list_copy; l != NULL; l = l->next) { NautilusWindow *window; @@ -1254,6 +1265,17 @@ nautilus_application_close_all_spatial_windows (void) GList *l; list_copy = g_list_copy (nautilus_application_spatial_window_list); + /* First hide all window to get the feeling of quick response */ + for (l = list_copy; l != NULL; l = l->next) { + NautilusWindow *window; + + window = NAUTILUS_WINDOW (l->data); + + if (NAUTILUS_IS_SPATIAL_WINDOW (window)) { + gtk_widget_hide (GTK_WIDGET (window)); + } + } + for (l = list_copy; l != NULL; l = l->next) { NautilusWindow *window; |