diff options
author | Federico Mena Quintero <federico@gnome.org> | 2013-01-10 18:12:15 -0600 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2013-01-10 18:12:15 -0600 |
commit | da2e081786552a69dd7e278d713689c8d5606a87 (patch) | |
tree | 98294a08447b6d1f271249e06cb3b01639ec2cd8 /gtk/gtkplacessidebar.h | |
parent | 0b4183234b23866b3857cb00a145b34c954ac2d1 (diff) | |
download | gtk+-da2e081786552a69dd7e278d713689c8d5606a87.tar.gz |
Make the set_location()/get_location() API consistent
We used to have set_current_location() and get_selected_location(), with confusing
semantics. Now they are symmetric, with the exception that if set_location() is
called with a location that is not shown in the sidebar, then it will both clear
the selection in the list and make get_selection() return NULL.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Diffstat (limited to 'gtk/gtkplacessidebar.h')
-rw-r--r-- | gtk/gtkplacessidebar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkplacessidebar.h b/gtk/gtkplacessidebar.h index b09aa19aa3..27f626e7c4 100644 --- a/gtk/gtkplacessidebar.h +++ b/gtk/gtkplacessidebar.h @@ -57,9 +57,9 @@ GtkWidget *gtk_places_sidebar_new (void); void gtk_places_sidebar_set_open_flags (GtkPlacesSidebar *sidebar, GtkPlacesOpenFlags flags); -void gtk_places_sidebar_set_current_location (GtkPlacesSidebar *sidebar, GFile *location); +void gtk_places_sidebar_set_location (GtkPlacesSidebar *sidebar, GFile *location); -GFile *gtk_places_sidebar_get_selected_location (GtkPlacesSidebar *sidebar); +GFile *gtk_places_sidebar_get_location (GtkPlacesSidebar *sidebar); void gtk_places_sidebar_set_show_desktop (GtkPlacesSidebar *sidebar, gboolean show_desktop); |