Add functions to say whether multiple tabs/windows are supported

The file chooser will leave these off by default; file managers
like Nautilus will turn them on.

These control whether the places sidebar shows 'open in new tab' and similar
items in its context menu.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
This commit is contained in:
Federico Mena Quintero
2011-10-04 09:22:11 -05:00
parent 01020ccc81
commit 7be881982f
2 changed files with 57 additions and 17 deletions

View File

@ -50,9 +50,14 @@ typedef enum {
GType gtk_places_sidebar_get_type (void);
GtkWidget *gtk_places_sidebar_new (void);
/* FIXME: add an "uri" property so this can be set via g_object_set() */
/* FIXME: add GObject properties for the following things */
void gtk_places_sidebar_set_current_uri (GtkPlacesSidebar *sidebar, const char *uri);
void gtk_places_sidebar_set_multiple_tabs_supported (GtkPlacesSidebar *sidebar, gboolean supported);
void gtk_places_sidebar_set_multiple_windows_supported (GtkPlacesSidebar *sidebar, gboolean supported);
G_END_DECLS
#endif /* __GTK_PLACES_SIDEBAR_H__ */