summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-01-18 17:39:05 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-01-18 17:39:05 -0500
commit4b47c5a64999d5d24abe1e516324b4c95c35f6f0 (patch)
tree1f517d05e8caf9052ee8947734a64477673ebdb2
parenta8cb7352c5f6fa046d5ed434756c144faf62562a (diff)
downloadgtk+-4b47c5a64999d5d24abe1e516324b4c95c35f6f0.tar.gz
file chooser: Don't show 'Enter Location' in save modes
In these modes, the entry is permanently visible anyway.
-rw-r--r--gtk/gtkfilechooserwidget.c2
1 files changed, 2 insertions, 0 deletions
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);
}