diff options
author | Federico Mena Quintero <federico@gnome.org> | 2013-01-10 16:19:03 -0600 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2013-01-10 16:19:03 -0600 |
commit | 0b4183234b23866b3857cb00a145b34c954ac2d1 (patch) | |
tree | d4d7f013ef60a07d7922d3e49a63a2051ad61ee3 /gtk/gtkplacessidebar.h | |
parent | 439a770efac908b1191575a46b7a6db696987868 (diff) | |
download | gtk+-0b4183234b23866b3857cb00a145b34c954ac2d1.tar.gz |
New API, gtk_places_sidebar_set_open_flags()
This lets us handle the 'Open in new tab' and 'Open in new window' menu items
on our own, and allows callers to have less code to deal with each mode.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Diffstat (limited to 'gtk/gtkplacessidebar.h')
-rw-r--r-- | gtk/gtkplacessidebar.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk/gtkplacessidebar.h b/gtk/gtkplacessidebar.h index 1ad4cdd046..b09aa19aa3 100644 --- a/gtk/gtkplacessidebar.h +++ b/gtk/gtkplacessidebar.h @@ -45,16 +45,18 @@ typedef struct _GtkPlacesSidebar GtkPlacesSidebar; typedef struct _GtkPlacesSidebarClass GtkPlacesSidebarClass; typedef enum { - GTK_PLACES_OPEN_MODE_NORMAL, - GTK_PLACES_OPEN_MODE_NEW_TAB, - GTK_PLACES_OPEN_MODE_NEW_WINDOW -} GtkPlacesOpenMode; + GTK_PLACES_OPEN_NORMAL = 1 << 0, + GTK_PLACES_OPEN_NEW_TAB = 1 << 1, + GTK_PLACES_OPEN_NEW_WINDOW = 1 << 2 +} GtkPlacesOpenFlags; GType gtk_places_sidebar_get_type (void); GtkWidget *gtk_places_sidebar_new (void); /* FIXME: add GObject properties for the following things */ +void gtk_places_sidebar_set_open_flags (GtkPlacesSidebar *sidebar, GtkPlacesOpenFlags flags); + void gtk_places_sidebar_set_current_location (GtkPlacesSidebar *sidebar, GFile *location); GFile *gtk_places_sidebar_get_selected_location (GtkPlacesSidebar *sidebar); |