[nautilus] application: simplify code



commit 52897a3ea57988c620a6e5130a0072d311120e95
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Apr 25 12:43:08 2012 -0400

    application: simplify code

 src/nautilus-application.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 1513fdb..9bd4a73 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -529,16 +529,6 @@ desktop_changed_callback (gpointer user_data)
 	}
 }
 
-static gboolean
-window_can_be_closed (NautilusWindow *window)
-{
-	if (!NAUTILUS_IS_DESKTOP_WINDOW (window)) {
-		return TRUE;
-	}
-	
-	return FALSE;
-}
-
 static void
 mount_added_callback (GVolumeMonitor *monitor,
 		      GMount *mount,
@@ -596,7 +586,7 @@ mount_removed_callback (GVolumeMonitor *monitor,
 	/* Construct a list of windows to be closed. Do not add the non-closable windows to the list. */
 	for (node = window_list; node != NULL; node = node->next) {
 		window = NAUTILUS_WINDOW (node->data);
-		if (window != NULL && window_can_be_closed (window)) {
+		if (window != NULL && !NAUTILUS_IS_DESKTOP_WINDOW (window)) {
 			GList *l;
 			GList *lp;
 



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