[nautilus/gnome-2-32: 273/283] Hide all windows before closing when closing all windows (#441095)
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-2-32: 273/283] Hide all windows before closing when closing all windows (#441095)
- Date: Thu, 12 Aug 2010 11:26:59 +0000 (UTC)
commit 97bb1989ddd6d8f04bcec96ce3652f6462c78a0e
Author: Marcus Carlson <mdc src gnome org>
Date: Sat Jul 31 23:10:26 2010 +0200
Hide all windows before closing when closing all windows (#441095)
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 59ac1d6..25b8d2e 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1122,6 +1122,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;
@@ -1229,6 +1240,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]