summaryrefslogtreecommitdiff
path: root/gtk/gtksearchenginemodel.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-07-24 00:40:59 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-07-27 08:07:39 -0400
commiteee85d39e56205976ab8b215e1e3e92e9d8c4913 (patch)
tree5c831fe370048ebbf0cc53be5af0db522923c150 /gtk/gtksearchenginemodel.c
parentf7bba525fc7a02443907b5baf365ac09c2009775 (diff)
downloadgtk+-eee85d39e56205976ab8b215e1e3e92e9d8c4913.tar.gz
Avoid more GFile<>uri roundtrips
Make GtkSearchHit carry a GFile instead of an uri. Most of the search engines already have the object around, and converting to an uri and back is unnecessary extra work.
Diffstat (limited to 'gtk/gtksearchenginemodel.c')
-rw-r--r--gtk/gtksearchenginemodel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtksearchenginemodel.c b/gtk/gtksearchenginemodel.c
index a7f00eec4d..f245e1aa21 100644
--- a/gtk/gtksearchenginemodel.c
+++ b/gtk/gtksearchenginemodel.c
@@ -99,7 +99,7 @@ do_search (gpointer data)
file = _gtk_file_system_model_get_file (model->model, &iter);
hit = g_new (GtkSearchHit, 1);
- hit->uri = g_file_get_uri (file);
+ hit->file = g_object_ref (file);
hit->info = g_object_ref (info);
hits = g_list_prepend (hits, hit);
}