diff options
author | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2017-06-28 17:47:41 +0100 |
---|---|---|
committer | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2017-08-09 10:50:57 +0100 |
commit | 5d05180eba0adbabc84b2d9a33f4a3e97f01274b (patch) | |
tree | a7fc39f4a88c17d279e7223dabca7a794daa98b3 /src/nautilus-pathbar.c | |
parent | c1eb1d2a70d82e38094c0cf2360cfeb976531cfc (diff) | |
download | nautilus-5d05180eba0adbabc84b2d9a33f4a3e97f01274b.tar.gz |
implement tagswip/alexpandelea/tags
Diffstat (limited to 'src/nautilus-pathbar.c')
-rw-r--r-- | src/nautilus-pathbar.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c index 60817b442..24b1685e9 100644 --- a/src/nautilus-pathbar.c +++ b/src/nautilus-pathbar.c @@ -47,7 +47,8 @@ typedef enum OTHER_LOCATIONS_BUTTON, ROOT_BUTTON, HOME_BUTTON, - MOUNT_BUTTON + MOUNT_BUTTON, + FAVORITE_LOCATION_BUTTON } ButtonType; #define BUTTON_DATA(x) ((ButtonData *) (x)) @@ -331,6 +332,11 @@ get_dir_name (ButtonData *button_data) return _("Other Locations"); } + case FAVORITE_LOCATION_BUTTON: + { + return _("Favorite Files"); + } + default: return button_data->dir_name; } @@ -1723,6 +1729,10 @@ setup_button_type (ButtonData *button_data, g_object_unref (mount); } + else if (g_strcmp0 (uri, "favorites:///") == 0) + { + button_data->type = FAVORITE_LOCATION_BUTTON; + } else { button_data->type = NORMAL_BUTTON; |