GtkFileChooser: propagate local-only to sidebar

This fixes a regression from the sidebar merge.
This commit is contained in:
Matthias Clasen 2013-11-09 18:29:10 -05:00
parent 9e5a8b7ae1
commit 90c4515678
2 changed files with 3 additions and 0 deletions

View File

@ -2414,6 +2414,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);
gtk_places_sidebar_set_local_only (GTK_PLACES_SIDEBAR (priv->places_sidebar), local_only);
if (local_only && priv->current_folder &&
!_gtk_file_has_native_path (priv->current_folder))
{

View File

@ -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>