[gtk+] file chooser: Don't show 'Enter Location' in save modes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] file chooser: Don't show 'Enter Location' in save modes
- Date: Sun, 18 Jan 2015 22:46:54 +0000 (UTC)
commit 4b47c5a64999d5d24abe1e516324b4c95c35f6f0
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jan 18 17:39:05 2015 -0500
file chooser: Don't show 'Enter Location' in save modes
In these modes, the entry is permanently visible anyway.
gtk/gtkfilechooserwidget.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 204a877..f3cdd4c 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]