efreet: minor changes

- Wait longer before we start cache build process
- Fix typo
- Don't log with \n
- TODO++

SVN revision: 78872
This commit is contained in:
Sebastian Dransfeld 2012-11-02 20:11:56 +00:00
parent 2d2f2236a4
commit 89daa0b210
1 changed files with 6 additions and 5 deletions

View File

@ -90,7 +90,7 @@ cache_icon_update(Eina_Bool flush)
ecore_timer_del(icon_cache_timer); ecore_timer_del(icon_cache_timer);
if (flush) if (flush)
icon_flush = flush; icon_flush = flush;
icon_cache_timer = ecore_timer_add(0.2, icon_cache_update_cache_cb, NULL); icon_cache_timer = ecore_timer_add(1.0, icon_cache_update_cache_cb, NULL);
} }
static Eina_Bool static Eina_Bool
@ -450,7 +450,7 @@ cache_desktop_update(void)
{ {
if (desktop_cache_timer) if (desktop_cache_timer)
ecore_timer_del(desktop_cache_timer); ecore_timer_del(desktop_cache_timer);
desktop_cache_timer = ecore_timer_add(0.2, desktop_cache_update_cache_cb, NULL); desktop_cache_timer = ecore_timer_add(1.0, desktop_cache_update_cache_cb, NULL);
} }
Eina_Bool Eina_Bool
@ -467,7 +467,7 @@ cache_init(void)
snprintf(buf, sizeof(buf), "%s/efreet", efreet_cache_home_get()); snprintf(buf, sizeof(buf), "%s/efreet", efreet_cache_home_get());
if (!ecore_file_mkpath(buf)) if (!ecore_file_mkpath(buf))
{ {
ERR("Failed to create directory '%s'\n", buf); ERR("Failed to create directory '%s'", buf);
goto error; goto error;
} }
@ -475,14 +475,14 @@ cache_init(void)
cache_exe_del_cb, NULL); cache_exe_del_cb, NULL);
if (!cache_exe_del_handler) if (!cache_exe_del_handler)
{ {
ERR("Failed to add exe del handler\n"); ERR("Failed to add exe del handler");
goto error; goto error;
} }
cache_exe_data_handler = ecore_event_handler_add(ECORE_EXE_EVENT_DATA, cache_exe_data_handler = ecore_event_handler_add(ECORE_EXE_EVENT_DATA,
cache_exe_data_cb, NULL); cache_exe_data_cb, NULL);
if (!cache_exe_data_handler) if (!cache_exe_data_handler)
{ {
ERR("Failed to add exe del handler\n"); ERR("Failed to add exe data handler");
goto error; goto error;
} }
@ -493,6 +493,7 @@ cache_init(void)
read_lists(); read_lists();
/* TODO: Should check if system dirs has changed and handles extra_dirs */ /* TODO: Should check if system dirs has changed and handles extra_dirs */
/* TODO: get desktop-directories as well */
desktop_system_dirs = efreet_default_dirs_get(efreet_data_home_get(), desktop_system_dirs = efreet_default_dirs_get(efreet_data_home_get(),
efreet_data_dirs_get(), "applications"); efreet_data_dirs_get(), "applications");
icon_changes_listen(); icon_changes_listen();