Package: nautilus Version: 2.14.3-9 Severity: wishlist
Description: A patch for added the current location in title bar. It is useful for somebody to know the path of current location when there are many nautilus' windows. -- Adrien DELLE CAVE Proformatique - 67 rue Voltaire - 92800 Puteaux Tel. : 01 41 38 99 60 - Fax. : 01 41 38 99 70 [EMAIL PROTECTED] - http://www.proformatique.com/
Index: nautilus-2.14.3/debian/changelog =================================================================== --- nautilus-2.14.3.orig/debian/changelog 2007-03-01 19:42:38.000000000 +0100 +++ nautilus-2.14.3/debian/changelog 2007-03-01 13:23:11.000000000 +0100 @@ -1,3 +1,9 @@ +nautilus (2.14.3-9.pf.1) unstable; urgency=low + + * Added patch to display current location in title bar. + + -- Adrien DELLE CAVE (Decryptus) <[EMAIL PROTECTED]> Thu, 1 Mar 2007 13:23:11 +0100 + nautilus (2.14.3-9) unstable; urgency=medium * 07_desktop_file_activation.patch: Index: nautilus-2.14.3/debian/patches/88_location-in-title-bar.patch =================================================================== --- nautilus-2.14.3.orig/debian/patches/88_location-in-title-bar.patch 1970-01-01 01:00:00.000000000 +0100 +++ nautilus-2.14.3/debian/patches/88_location-in-title-bar.patch 2007-03-01 13:17:04.000000000 +0100 @@ -0,0 +1,80 @@ +Index: nautilus-2.14.3/libnautilus-private/apps_nautilus_preferences.schemas.in +=================================================================== +--- nautilus-2.14.3.orig/libnautilus-private/apps_nautilus_preferences.schemas.in 2006-01-11 23:40:26.000000000 +0100 ++++ nautilus-2.14.3/libnautilus-private/apps_nautilus_preferences.schemas.in 2007-03-01 08:36:55.000000000 +0100 +@@ -705,6 +705,21 @@ + </schema> + + <schema> ++ <key>/schemas/apps/nautilus/preferences/location_in_title_bar</key> ++ <applyto>/apps/nautilus/preferences/location_in_title_bar</applyto> ++ <owner>nautilus</owner> ++ <type>bool</type> ++ <default>true</default> ++ <locale name="C"> ++ <short>Show current location in title bar</short> ++ <long> ++ If set to true, newly opened windows will have location ++ in title bar. ++ </long> ++ </locale> ++ </schema> ++ ++ <schema> + <key>/schemas/apps/nautilus/preferences/start_with_sidebar</key> + <applyto>/apps/nautilus/preferences/start_with_sidebar</applyto> + <owner>nautilus</owner> +Index: nautilus-2.14.3/libnautilus-private/nautilus-global-preferences.c +=================================================================== +--- nautilus-2.14.3.orig/libnautilus-private/nautilus-global-preferences.c 2006-03-18 08:13:49.000000000 +0100 ++++ nautilus-2.14.3/libnautilus-private/nautilus-global-preferences.c 2007-03-01 08:38:08.000000000 +0100 +@@ -376,6 +376,10 @@ + PREFERENCE_BOOLEAN, + GINT_TO_POINTER (TRUE) + }, ++ { NAUTILUS_PREFERENCES_LOCATION_IN_TITLE_BAR, ++ PREFERENCE_BOOLEAN, ++ GINT_TO_POINTER (TRUE) ++ }, + { NAUTILUS_PREFERENCES_START_WITH_SIDEBAR, + PREFERENCE_BOOLEAN, + GINT_TO_POINTER (TRUE) +Index: nautilus-2.14.3/libnautilus-private/nautilus-global-preferences.h +=================================================================== +--- nautilus-2.14.3.orig/libnautilus-private/nautilus-global-preferences.h 2005-12-15 15:32:57.000000000 +0100 ++++ nautilus-2.14.3/libnautilus-private/nautilus-global-preferences.h 2007-03-01 08:38:42.000000000 +0100 +@@ -84,6 +84,7 @@ + #define NAUTILUS_PREFERENCES_START_WITH_LOCATION_BAR "preferences/start_with_location_bar" + #define NAUTILUS_PREFERENCES_ALWAYS_USE_LOCATION_ENTRY "preferences/always_use_location_entry" + #define NAUTILUS_PREFERENCES_START_WITH_STATUS_BAR "preferences/start_with_status_bar" ++#define NAUTILUS_PREFERENCES_LOCATION_IN_TITLE_BAR "preferences/location_in_title_bar" + #define NAUTILUS_PREFERENCES_START_WITH_SIDEBAR "preferences/start_with_sidebar" + #define NAUTILUS_PREFERENCES_START_WITH_TOOLBAR "preferences/start_with_toolbar" + #define NAUTILUS_PREFERENCES_SIDE_PANE_VIEW "preferences/side_pane_view" +Index: nautilus-2.14.3/src/nautilus-navigation-window.c +=================================================================== +--- nautilus-2.14.3.orig/src/nautilus-navigation-window.c 2006-03-18 08:13:50.000000000 +0100 ++++ nautilus-2.14.3/src/nautilus-navigation-window.c 2007-03-01 08:43:07.000000000 +0100 +@@ -815,13 +815,21 @@ + { + char *full_title; + char *window_title; ++ char *location; + gboolean changed; + + changed = EEL_CALL_PARENT_WITH_RETURN_VALUE + (NAUTILUS_WINDOW_CLASS, set_title, (window, title)); + + if (changed) { +- full_title = g_strdup_printf (_("%s - File Browser"), title); ++ if(eel_preferences_get_boolean (NAUTILUS_PREFERENCES_LOCATION_IN_TITLE_BAR) ++ && (location = nautilus_window_get_location (window)) != NULL) { ++ location = eel_format_uri_for_display (location); ++ title = g_strdup_printf("%s (%s)",title,location); ++ g_free (location); ++ } ++ ++ full_title = g_strdup_printf (_("%s - File Browser"), title); + + window_title = eel_str_middle_truncate (full_title, MAX_TITLE_LENGTH); + gtk_window_set_title (GTK_WINDOW (window), window_title);