From 4b47c5a64999d5d24abe1e516324b4c95c35f6f0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 18 Jan 2015 17:39:05 -0500 Subject: [PATCH] file chooser: Don't show 'Enter Location' in save modes In these modes, the entry is permanently visible anyway. --- gtk/gtkfilechooserwidget.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 204a877dae..f3cdd4c76d 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -2540,6 +2540,7 @@ update_appearance (GtkFileChooserWidget *impl) priv->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER) { save_widgets_create (impl); + gtk_places_sidebar_set_show_enter_location (GTK_PLACES_SIDEBAR (priv->places_sidebar), FALSE); if (priv->select_multiple) { @@ -2552,6 +2553,7 @@ update_appearance (GtkFileChooserWidget *impl) priv->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER) { save_widgets_destroy (impl); + gtk_places_sidebar_set_show_enter_location (GTK_PLACES_SIDEBAR (priv->places_sidebar), TRUE); location_mode_set (impl, priv->location_mode); }