summaryrefslogtreecommitdiff
path: root/src/nautilus-bookmark-list.c
diff options
context:
space:
mode:
authorMohammed Sadiq <sadiq@sadiqpk.org>2016-09-21 08:31:42 +0530
committerCarlos Soriano <csoriano@gnome.org>2016-09-21 10:24:19 +0200
commit3c8d450cd61a891a84fb4b2c06f4cc6a806a260d (patch)
tree7551e27edda3bd6473c6bf65bd7b3097abc72830 /src/nautilus-bookmark-list.c
parent7a4a5b03253a4931834fd16bb87e99a87d4aec66 (diff)
downloadnautilus-3c8d450cd61a891a84fb4b2c06f4cc6a806a260d.tar.gz
nautilus-toolbar: disable bookmark on 'Other Locations'
'Other locations' is already listed in the sidebar. So there is no need for allowing the user to bookmark 'Other Locations'. This commit makes the bookmark button in toolbar insensitive for 'Other Locations'. https://bugzilla.gnome.org/show_bug.cgi?id=771163
Diffstat (limited to 'src/nautilus-bookmark-list.c')
-rw-r--r--src/nautilus-bookmark-list.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nautilus-bookmark-list.c b/src/nautilus-bookmark-list.c
index 839b6a539..bdcb6e913 100644
--- a/src/nautilus-bookmark-list.c
+++ b/src/nautilus-bookmark-list.c
@@ -629,6 +629,11 @@ nautilus_bookmark_list_can_bookmark_location (NautilusBookmarkList *list,
return FALSE;
}
+ if (nautilus_is_other_locations_directory (location))
+ {
+ return FALSE;
+ }
+
bookmark = nautilus_bookmark_new (location, NULL);
is_builtin = nautilus_bookmark_get_is_builtin (bookmark);
g_object_unref (bookmark);