diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2007-05-10 15:04:51 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-05-10 15:04:51 +0000 |
commit | 88283d7d6c23af6134246f74665591123e669da5 (patch) | |
tree | 03ffaedac70d3ada7b24f503a91563355c409463 /gtk/gtksearchenginesimple.c | |
parent | f795745019d1bbfcc9bbcf70ffe56ca81639e769 (diff) | |
download | gtk+-88283d7d6c23af6134246f74665591123e669da5.tar.gz |
Assume Posix nftw behaviour
svn path=/trunk/; revision=17812
Diffstat (limited to 'gtk/gtksearchenginesimple.c')
-rw-r--r-- | gtk/gtksearchenginesimple.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk/gtksearchenginesimple.c b/gtk/gtksearchenginesimple.c index 4aa5879024..cfc6da850e 100644 --- a/gtk/gtksearchenginesimple.c +++ b/gtk/gtksearchenginesimple.c @@ -193,7 +193,7 @@ search_visit_func (const char *fpath, SearchThreadData *data; gint i; const gchar *name; - gchar *lower_name, *path, *mime_type; + gchar *lower_name, *mime_type; gchar *uri; gboolean hit; GList *l; @@ -210,8 +210,6 @@ search_visit_func (const char *fpath, else name = fpath; - path = g_build_filename (data->path, fpath, NULL); - is_hidden = *name == '.'; hit = FALSE; @@ -235,7 +233,7 @@ search_visit_func (const char *fpath, if (hit && data->mime_types != NULL) { hit = FALSE; - mime_type = xdg_mime_get_mime_type_for_file (path, (struct stat *)sb); + mime_type = xdg_mime_get_mime_type_for_file (fpath, (struct stat *)sb); for (l = data->mime_types; l != NULL; l = l->next) { if (strcmp (mime_type, l->data) == 0) @@ -250,7 +248,7 @@ search_visit_func (const char *fpath, if (hit) { - uri = g_filename_to_uri (path, NULL, NULL); + uri = g_filename_to_uri (fpath, NULL, NULL); data->uri_hits = g_list_prepend (data->uri_hits, uri); } |