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.
This commit is contained in:
Matthias Clasen
2015-07-24 00:40:59 -04:00
parent f7bba525fc
commit eee85d39e5
6 changed files with 9 additions and 11 deletions

View File

@ -42,7 +42,7 @@ typedef struct _GtkSearchHit GtkSearchHit;
struct _GtkSearchHit
{
gchar *uri;
GFile *file;
GFileInfo *info; /* may be NULL */
};