[nautilus/gnome-2-32: 215/283] Don't set has_custom_name for current location bookmark.
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-2-32: 215/283] Don't set has_custom_name for current location bookmark.
- Date: Thu, 12 Aug 2010 11:22:06 +0000 (UTC)
commit 3bb16a28beccee6a0e45959a85c08e11d5356f6d
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]