[gtk+] file chooser: Unify search mode leaving



commit e31e88582f280917fa79ca201f59dbabe994fdc6
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jan 28 18:21:18 2015 -0500

    file chooser: Unify search mode leaving
    
    Make all ways to get out of search mode go through the same
    code path, so we always populate the list.

 gtk/gtkfilechooserwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 70aaf69..d6c0202 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -6271,7 +6271,7 @@ search_entry_activate_cb (GtkFileChooserWidget *impl)
 static void
 search_entry_stop_cb (GtkFileChooserWidget *impl)
 {
-  operation_mode_set (impl, OPERATION_MODE_BROWSE);
+  g_object_set (impl, "search-mode", FALSE, NULL);
 }
 
 /* Hides the path bar and creates the search entry */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]