[gtk+/wip/gbsneto/other-locations] file chooser: Ensure we update subtitles
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/gbsneto/other-locations] file chooser: Ensure we update subtitles
- Date: Sat, 11 Jul 2015 14:29:24 +0000 (UTC)
commit 6f3bedadce29e79d45099d03d931833458c2f024
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 8 17:42:34 2015 -0400
file chooser: Ensure we update subtitles
Notify the ::subtitle property when modes change that may
affect it. Also ensure that we update the location mode when
we switch back to the pathbar.
gtk/gtkfilechooserwidget.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index de93613..b185a13 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -3048,10 +3048,11 @@ operation_mode_set_browse (GtkFileChooserWidget *impl)
GtkFileChooserWidgetPrivate *priv = impl->priv;
gtk_stack_set_visible_child_name (GTK_STACK (priv->browse_files_stack), "list");
+ location_mode_set (impl, LOCATION_MODE_PATH_BAR);
gtk_stack_set_visible_child_name (GTK_STACK (priv->browse_header_stack), "pathbar");
gtk_revealer_set_reveal_child (GTK_REVEALER (priv->browse_header_revealer), TRUE);
- location_bar_update (impl);
gtk_widget_set_sensitive (priv->filter_combo, TRUE);
+ g_object_notify (G_OBJECT (impl), "subtitle");
}
static void
@@ -3084,6 +3085,7 @@ operation_mode_set_recent (GtkFileChooserWidget *impl)
recent_start_loading (impl);
file = g_file_new_for_uri ("recent:///");
gtk_places_sidebar_set_location (GTK_PLACES_SIDEBAR (priv->places_sidebar), file);
+ g_object_notify (G_OBJECT (impl), "subtitle");
g_object_unref (file);
gtk_widget_set_sensitive (priv->filter_combo, TRUE);
}
@@ -5333,6 +5335,8 @@ update_current_folder_get_info_cb (GCancellable *cancellable,
gtk_places_sidebar_set_location (GTK_PLACES_SIDEBAR (priv->places_sidebar), priv->current_folder);
+ g_object_notify (G_OBJECT (impl), "subtitle");
+
g_signal_emit_by_name (impl, "current-folder-changed", 0);
check_preview_change (impl);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]