[gtk+] Always pass a location into the query



commit 48c172f4e02090fe85efdf80666c1355b1a8293b
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 24 15:37:03 2015 -0400

    Always pass a location into the query
    
    Failure to do so was causing search to start from the home dir
    when the current folder is not represented on the sidebar.

 gtk/gtkfilechooserwidget.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 4b0a2d7..9c51220 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -7211,6 +7211,8 @@ search_start_query (GtkFileChooserWidget *impl,
       gtk_query_set_location (priv->search_query, file);
       g_object_unref (file);
     }
+  else
+    gtk_query_set_location (priv->search_query, priv->current_folder);
 
   _gtk_search_engine_set_model (priv->search_engine, priv->model_for_search);
   _gtk_search_engine_set_query (priv->search_engine, priv->search_query);


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