[gtk+/gtk-3-14] gtkfilechooserwidget: When using an extra widget, show or hide the filter combo as appropriate
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-14] gtkfilechooserwidget: When using an extra widget, show or hide the filter combo as appropriate
- Date: Sun, 11 Jan 2015 02:54:53 +0000 (UTC)
commit c945526b1f816cbbd2bd276594ae35e61e6db327
Author: Iain Lane <iain lane canonical com>
Date: Fri Jan 9 15:31:08 2015 +0000
gtkfilechooserwidget: When using an extra widget, show or hide the filter combo as appropriate
https://bugzilla.gnome.org/show_bug.cgi?id=742653
gtk/gtkfilechooserwidget.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index b994904..6a7477f 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -529,6 +529,9 @@ static void search_entry_activate_cb (GtkEntry *entry,
gpointer data);
static void settings_load (GtkFileChooserWidget *impl);
+static void show_filters (GtkFileChooserWidget *impl,
+ gboolean show);
+
static void recent_start_loading (GtkFileChooserWidget *impl);
static void recent_stop_loading (GtkFileChooserWidget *impl);
static void recent_clear_model (GtkFileChooserWidget *impl,
@@ -2211,7 +2214,8 @@ set_extra_widget (GtkFileChooserWidget *impl,
else
gtk_widget_hide (priv->extra_align);
- update_extra_and_filters (impl);
+ /* Calls update_extra_and_filters */
+ show_filters (impl, priv->filters != NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]