[nautilus] Don't set has_custom_name for current location bookmark.



commit d1446086855ec1a673b144befff5b707244b998c
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Jul 1 14:54:47 2010 +0200

    Don't set has_custom_name for current location bookmark.
    
    So that renaming the relevant location can trigger updates in the
    listeners.

 src/nautilus-window-manage-views.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c
index 3ec3157..82ce5d1 100644
--- a/src/nautilus-window-manage-views.c
+++ b/src/nautilus-window-manage-views.c
@@ -142,9 +142,9 @@ set_displayed_location (NautilusWindowSlot *slot, GFile *location)
 			g_object_unref (slot->last_location_bookmark);
                 }
 		slot->last_location_bookmark = slot->current_location_bookmark;
-		name = g_file_get_uri (location);
+		name = g_file_get_basename (location);
 		slot->current_location_bookmark = (location == NULL) ? NULL
-                        : nautilus_bookmark_new (location, name, TRUE, NULL);
+                        : nautilus_bookmark_new (location, name, FALSE, NULL);
 		g_free (name);
         }
 }



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