[nautilus] window: always use directory name as title



commit f8d291151329f96ac21c52278f30e72ec96651e0
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed May 30 10:00:13 2012 -0400

    window: always use directory name as title
    
    We don't have a spatial/browser distinction anymore.

 src/nautilus-window.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index a7b2585..f7ded56 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1971,7 +1971,6 @@ void
 nautilus_window_sync_title (NautilusWindow *window,
 			    NautilusWindowSlot *slot)
 {
-	char *full_title;
 	char *window_title;
 
 	if (NAUTILUS_WINDOW_CLASS (G_OBJECT_GET_CLASS (window))->sync_title != NULL) {
@@ -1981,17 +1980,7 @@ nautilus_window_sync_title (NautilusWindow *window,
 	}
 
 	if (slot == nautilus_window_get_active_slot (window)) {
-		/* if spatial mode is default, we keep "File Browser" in the window title
-		 * to recognize browser windows. Otherwise, we default to the directory name.
-		 */
-		if (!g_settings_get_boolean (nautilus_preferences, NAUTILUS_PREFERENCES_ALWAYS_USE_BROWSER)) {
-			full_title = g_strdup_printf (_("%s - File Browser"), slot->title);
-			window_title = eel_str_middle_truncate (full_title, MAX_TITLE_LENGTH);
-			g_free (full_title);
-		} else {
-			window_title = eel_str_middle_truncate (slot->title, MAX_TITLE_LENGTH);
-		}
-
+		window_title = eel_str_middle_truncate (slot->title, MAX_TITLE_LENGTH);
 		gtk_window_set_title (GTK_WINDOW (window), window_title);
 		g_free (window_title);
 	}



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