diff options
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; |