[gtk+/gtk-3-10] GtkFileChooser: propagate local-only to sidebar
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-10] GtkFileChooser: propagate local-only to sidebar
- Date: Thu, 14 Nov 2013 05:14:25 +0000 (UTC)
commit 80ed6b84d644ca7f1feeeb3d7e08aedc1b8b4dc1
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Nov 9 18:29:10 2013 -0500
GtkFileChooser: propagate local-only to sidebar
This fixes a regression from the sidebar merge.
gtk/gtkfilechooserdefault.c | 2 ++
gtk/gtkfilechooserdefault.ui | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 2438b8b..2b5441b 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -2418,6 +2418,8 @@ set_local_only (GtkFileChooserDefault *impl,
if (priv->location_entry)
_gtk_file_chooser_entry_set_local_only (GTK_FILE_CHOOSER_ENTRY (priv->location_entry), local_only);
+ g_object_set (priv->places_sidebar, "local-only", local_only, NULL);
+
if (local_only && priv->current_folder &&
!_gtk_file_has_native_path (priv->current_folder))
{
diff --git a/gtk/gtkfilechooserdefault.ui b/gtk/gtkfilechooserdefault.ui
index 53f06f1..fb5768d 100644
--- a/gtk/gtkfilechooserdefault.ui
+++ b/gtk/gtkfilechooserdefault.ui
@@ -200,6 +200,7 @@
<property name="can_focus">True</property>
<property name="hscrollbar_policy">never</property>
<property name="shadow_type">in</property>
+ <property name="local_only">True</property>
<signal name="open-location" handler="places_sidebar_open_location_cb" swapped="no"/>
<signal name="show-error-message" handler="places_sidebar_show_error_message_cb"
swapped="no"/>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]