diff options
author | Mohammed Sadiq <sadiq@sadiqpk.org> | 2016-09-21 08:31:42 +0530 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-09-21 10:24:19 +0200 |
commit | 3c8d450cd61a891a84fb4b2c06f4cc6a806a260d (patch) | |
tree | 7551e27edda3bd6473c6bf65bd7b3097abc72830 /src/nautilus-bookmark-list.c | |
parent | 7a4a5b03253a4931834fd16bb87e99a87d4aec66 (diff) | |
download | nautilus-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.c | 5 |
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); |