[nautilus] Hide all windows before closing when closing all windows (#441095)
- From: Marcus Carlson <mdc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Hide all windows before closing when closing all windows (#441095)
- Date: Mon, 9 Aug 2010 19:46:24 +0000 (UTC)
commit 5319feba3457213b656575893eeb973bde37a722
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 91f4281..517779e 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]