summaryrefslogtreecommitdiff
path: root/legacy/efreet
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2010-04-03 18:46:47 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2010-04-03 18:46:47 +0000
commitbc4bc7ce81fec9735e203227dfc657b915e5b8c4 (patch)
tree06be1c4d0e028209df278f991978de94f3599b46 /legacy/efreet
parent7c3818fb1da86a86826af9e59642002e446ff647 (diff)
efreet: Check whether cached version is latest.
SVN revision: 47735
Diffstat (limited to 'legacy/efreet')
-rw-r--r--legacy/efreet/src/lib/efreet_desktop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/legacy/efreet/src/lib/efreet_desktop.c b/legacy/efreet/src/lib/efreet_desktop.c
index 0c750ce869..3cd4a408b3 100644
--- a/legacy/efreet/src/lib/efreet_desktop.c
+++ b/legacy/efreet/src/lib/efreet_desktop.c
@@ -527,9 +527,8 @@ efreet_desktop_new(const char *file)
527 char rp[PATH_MAX]; 527 char rp[PATH_MAX];
528 if (!realpath(file, rp)) return NULL; 528 if (!realpath(file, rp)) return NULL;
529 529
530 /* TODO: Check if the cached version is out of date */
531 desktop = eet_data_read(cache, desktop_edd, rp); 530 desktop = eet_data_read(cache, desktop_edd, rp);
532 if (desktop) 531 if (desktop && desktop->load_time == ecore_file_mod_time(desktop->orig_path))
533 { 532 {
534 desktop->ref = 1; 533 desktop->ref = 1;
535 desktop->eet = 1; 534 desktop->eet = 1;