efreet: Check whether cached version is latest.

SVN revision: 47735
This commit is contained in:
Sebastian Dransfeld 2010-04-03 18:46:47 +00:00
parent 7c3818fb1d
commit bc4bc7ce81
1 changed files with 1 additions and 2 deletions

View File

@ -527,9 +527,8 @@ efreet_desktop_new(const char *file)
char rp[PATH_MAX];
if (!realpath(file, rp)) return NULL;
/* TODO: Check if the cached version is out of date */
desktop = eet_data_read(cache, desktop_edd, rp);
if (desktop)
if (desktop && desktop->load_time == ecore_file_mod_time(desktop->orig_path))
{
desktop->ref = 1;
desktop->eet = 1;