diff src/search.c @ 1145:3a7af6a8cd5f

Use functions to return directories instead of constants. Following functions were added: get_collections_dir() get_metadata_cache_dir() get_rc_dir() get_thumbnails_cache_dir() get_trash_dir() They return the full directory path.
author zas_
date Sat, 15 Nov 2008 17:30:45 +0000
parents 577d726e32f0
children 95860439070b
line wrap: on
line diff
--- a/src/search.c	Sat Nov 15 10:35:43 2008 +0000
+++ b/src/search.c	Sat Nov 15 17:30:45 2008 +0000
@@ -2219,12 +2219,8 @@
 	else if (sd->search_type == SEARCH_MATCH_ALL)
 		{
 		/* search metadata */
-		path = g_build_filename(homedir(), GQ_CACHE_RC_METADATA, NULL);
-
 		file_data_unref(sd->search_dir_fd);
-		sd->search_dir_fd = file_data_new_simple(path);
-		g_free(path);
-
+		sd->search_dir_fd = file_data_new_simple(get_metadata_cache_dir());
 		search_start(sd);
 		}
 	else if (sd->search_type == SEARCH_MATCH_CONTAINS)