diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-07-24 00:40:59 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-07-27 08:07:39 -0400 |
commit | eee85d39e56205976ab8b215e1e3e92e9d8c4913 (patch) | |
tree | 5c831fe370048ebbf0cc53be5af0db522923c150 /gtk/gtksearchenginemodel.c | |
parent | f7bba525fc7a02443907b5baf365ac09c2009775 (diff) | |
download | gtk+-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.c | 2 |
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); } |