diff options
Diffstat (limited to 'src/nautilus-window.c')
-rw-r--r-- | src/nautilus-window.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c index b2c6a8216..0e6367abe 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -1156,6 +1156,19 @@ places_sidebar_show_other_locations_with_flags (NautilusWindow *window, g_object_unref (location); } +static void +places_sidebar_show_starred_location (NautilusWindow *window, + GtkPlacesOpenFlags open_flags) +{ + GFile *location; + + location = g_file_new_for_uri ("favorites:///"); + + open_location_cb (window, location, open_flags); + + g_object_unref (location); +} + static GList * build_selection_list_from_gfile_list (GList *gfile_list) { @@ -2967,6 +2980,7 @@ nautilus_window_class_init (NautilusWindowClass *class) gtk_widget_class_bind_template_child_private (wclass, NautilusWindow, notification_operation_close); gtk_widget_class_bind_template_callback (wclass, places_sidebar_show_other_locations_with_flags); + gtk_widget_class_bind_template_callback (wclass, places_sidebar_show_starred_location); properties[PROP_DISABLE_CHROME] = g_param_spec_boolean ("disable-chrome", |