[nautilus/gtk3-breakage] application: add the desktop windows to the application window list



commit 8b34d38ccc7cdfe8b34027a3d41b26badca07f8d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Oct 27 15:05:59 2010 +0200

    application: add the desktop windows to the application window list
    
    So that we don't quit immediately when we close the browser window.

 src/nautilus-application.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 7217768..2ae3732 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -766,9 +766,11 @@ nautilus_application_create_desktop_windows (NautilusApplication *application)
 			gtk_widget_realize (GTK_WIDGET (window));
 			gdk_flush ();
 
-			
 			nautilus_application_desktop_windows =
 				g_list_prepend (nautilus_application_desktop_windows, window);
+
+			gtk_application_add_window (GTK_APPLICATION (application),
+						    GTK_WINDOW (window));
 		}
 	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]