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 /eel | |
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 'eel')
-rw-r--r-- | eel/eel-vfs-extensions.c | 6 | ||||
-rw-r--r-- | eel/eel-vfs-extensions.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/eel/eel-vfs-extensions.c b/eel/eel-vfs-extensions.c index 49e4b00a5..8bb33f7d2 100644 --- a/eel/eel-vfs-extensions.c +++ b/eel/eel-vfs-extensions.c @@ -56,6 +56,12 @@ eel_uri_is_search (const char *uri) } gboolean +eel_uri_is_other_locations (const char *uri) +{ + return g_str_has_prefix (uri, "other-locations:"); +} + +gboolean eel_uri_is_desktop (const char *uri) { return g_str_has_prefix (uri, EEL_DESKTOP_URI); diff --git a/eel/eel-vfs-extensions.h b/eel/eel-vfs-extensions.h index f64af0a18..8336efe51 100644 --- a/eel/eel-vfs-extensions.h +++ b/eel/eel-vfs-extensions.h @@ -40,6 +40,7 @@ gboolean eel_uri_is_trash_folder (const char * gboolean eel_uri_is_in_trash (const char *uri); gboolean eel_uri_is_desktop (const char *uri); gboolean eel_uri_is_search (const char *uri); +gboolean eel_uri_is_other_locations (const char *uri); gboolean eel_uri_is_recent (const char *uri); char * eel_make_valid_utf8 (const char *name); |