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/gtksearchenginetracker.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/gtksearchenginetracker.c')
-rw-r--r-- | gtk/gtksearchenginetracker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtksearchenginetracker.c b/gtk/gtksearchenginetracker.c index 7c4e063282..bac7a09afd 100644 --- a/gtk/gtksearchenginetracker.c +++ b/gtk/gtksearchenginetracker.c @@ -300,7 +300,7 @@ query_callback (GObject *object, v = g_variant_iter_next_value (&iter); strv = g_variant_get_strv (v, NULL); - hit[i].uri = (gchar*)strv[0]; + hit[i].file = g_file_new_for_uri (strv[0]); hit[i].info = NULL; g_free (strv); hits = g_list_prepend (hits, &hit[i]); |