efreet: formatting

SVN revision: 48921
This commit is contained in:
Sebastian Dransfeld 2010-05-16 19:36:42 +00:00
parent fc031b899d
commit f7b9de9595
2 changed files with 9 additions and 9 deletions

View File

@ -246,16 +246,16 @@ efreet_dirs_get(const char *key, const char *fallback)
{
*p = '\0';
if (!eina_list_search_unsorted(dirs, EINA_COMPARE_CB(strcmp), s))
{
{
// resolve path properly/fully to remove path//path2 to
// path/path2, path/./path2 to path/path2 etc.
char *ts = ecore_file_realpath(s);
if (ts)
{
dirs = eina_list_append(dirs, (void *)eina_stringshare_add(ts));
free(ts);
}
}
{
dirs = eina_list_append(dirs, (void *)eina_stringshare_add(ts));
free(ts);
}
}
s = ++p;
p = strchr(s, EFREET_PATH_SEP);

View File

@ -19,7 +19,7 @@
/* define macros and variable for using the eina logging system */
#ifdef EFREET_MODULE_LOG_DOM
#ifdef EFREET_MODULE_LOG_DOM
#undef EFREET_MODULE_LOG_DOM
#endif
#define EFREET_MODULE_LOG_DOM _efreet_utils_log_dom
@ -63,7 +63,7 @@ int
efreet_util_shutdown(void)
{
if (--init) return init;
eina_log_domain_unregister(_efreet_utils_log_dom);
IF_FREE_HASH(file_id_by_desktop_path);
if (cache) eet_close(cache);
@ -130,7 +130,7 @@ efreet_util_path_to_file_id(const char *path)
const char *file_id;
/* TODO: Check if searching in cache is fast enough */
if (!path) return NULL;
if (!path) return NULL;
file_id = eina_hash_find(file_id_by_desktop_path, path);
if (file_id) return file_id;