summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserwidget.c
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-02-29 23:13:51 +0100
committerMatthias Clasen <mclasen@redhat.com>2016-03-04 20:15:52 -0500
commitfdde27ea9ced5b8489127ed69e00f9ca363c799f (patch)
tree3355d39144db4a78f927cb01d77a9edcec6ebe34 /gtk/gtkfilechooserwidget.c
parentfec0c4c201cc26f6b43c64e5e8e844f8a553527b (diff)
downloadgtk+-fdde27ea9ced5b8489127ed69e00f9ca363c799f.tar.gz
gtkplacessidebar: add new other locations with flags signal
We weren't using the open flags on the other locations signal, which makes impossible for applications like nautilus to act in the same way that for any other location where the user can choose between opening in the current view, in a new window or in a new tab. Add a new signal with an open flags parameter and deprecate the other-location signal. https://bugzilla.gnome.org/show_bug.cgi?id=754743
Diffstat (limited to 'gtk/gtkfilechooserwidget.c')
-rw-r--r--gtk/gtkfilechooserwidget.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 74d224e704..653c11d58b 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -2831,8 +2831,9 @@ location_mode_set (GtkFileChooserWidget *impl,
/* Callback used when the places sidebar asks us to show other locations */
static void
-places_sidebar_show_other_locations_cb (GtkPlacesSidebar *sidebar,
- GtkFileChooserWidget *impl)
+places_sidebar_show_other_locations_with_flags_cb (GtkPlacesSidebar *sidebar,
+ GtkPlacesOpenFlags open_flags,
+ GtkFileChooserWidget *impl)
{
GtkFileChooserWidgetPrivate *priv = impl->priv;
@@ -8504,7 +8505,7 @@ gtk_file_chooser_widget_class_init (GtkFileChooserWidgetClass *class)
gtk_widget_class_bind_template_callback (widget_class, path_bar_clicked);
gtk_widget_class_bind_template_callback (widget_class, places_sidebar_open_location_cb);
gtk_widget_class_bind_template_callback (widget_class, places_sidebar_show_error_message_cb);
- gtk_widget_class_bind_template_callback (widget_class, places_sidebar_show_other_locations_cb);
+ gtk_widget_class_bind_template_callback (widget_class, places_sidebar_show_other_locations_with_flags_cb);
gtk_widget_class_bind_template_callback (widget_class, search_entry_activate_cb);
gtk_widget_class_bind_template_callback (widget_class, search_entry_stop_cb);
gtk_widget_class_bind_template_callback (widget_class, new_folder_popover_active);