[gtk+] file chooser: Load a directory when leaving search
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] file chooser: Load a directory when leaving search
- Date: Wed, 28 Jan 2015 23:27:53 +0000 (UTC)
commit 59c04d51843cfc5d7a1eae447767c0fd99675f5e
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 28 18:15:19 2015 -0500
file chooser: Load a directory when leaving search
Ensure that some folder contents are shown in
the list when we leave search mode.
https://bugzilla.gnome.org/show_bug.cgi?id=743659
gtk/gtkfilechooserwidget.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index f192ceb..b39b7ca 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -2621,7 +2621,13 @@ gtk_file_chooser_widget_set_property (GObject *object,
if (g_value_get_boolean (value))
operation_mode_set (impl, OPERATION_MODE_SEARCH);
else
- operation_mode_set (impl, OPERATION_MODE_BROWSE);
+ {
+ operation_mode_set (impl, OPERATION_MODE_BROWSE);
+ if (priv->current_folder)
+ change_folder_and_display_error (impl, priv->current_folder, FALSE);
+ else
+ switch_to_home_dir (impl);
+ }
break;
case GTK_FILE_CHOOSER_PROP_ACTION:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]