[gtk+] 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+] gtkfilechooserwidget: When using an extra widget, show or hide the filter combo as appropriate
- Date: Sun, 11 Jan 2015 01:37:47 +0000 (UTC)
commit 8c5094c22c280f0f27d33afc52bbb5a25e17f023
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 2978597..d188246 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -532,6 +532,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,
@@ -2246,7 +2249,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]