[gtk+/wip/matthiasc/local-search: 2/8] Always pass a location into the query
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/local-search: 2/8] Always pass a location into the query
- Date: Fri, 24 Jul 2015 20:28:47 +0000 (UTC)
commit 50dabbb60cfceb4af829ef4bcb8390e9555773df
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 8117695..14b62c1 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -7215,6 +7215,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]