Edje needs to detect files changed on disk before considering cache.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 27 Feb 2010 03:47:04 +0000 (03:47 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 27 Feb 2010 03:47:04 +0000 (03:47 +0000)
commit5c21ffba0bb3912de2e30da47b59fdacee4008f2
tree7bf950bf20792c04f5a209b2f7cc17ead60c2297
parentf8c894f38adbb4d7cd8cbc6bf53488775077ada5
Edje needs to detect files changed on disk before considering cache.

If file changed on disc (mtime), then make the reference dangling so
it is not reused anymore on subsequent open. If it is in cache, just
free it as it is not useful anymore.

This solves the following problem:

     edje_object_file_set(ed, path, group);
     ecore_file_cp(new_gen_file, path);
     edje_object_file_set(ed, path, group); /* still uses the old one! */

By: Bruno Dilly <bdilly@profusion.mobi>

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@46548 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/edje_cache.c
src/lib/edje_private.h