update mtime when save
authortiago <tiago@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 29 Apr 2010 18:52:59 +0000 (18:52 +0000)
committertiago <tiago@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 29 Apr 2010 18:52:59 +0000 (18:52 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@48432 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_edit.c

index 38f7e72..90e4e65 100644 (file)
@@ -7087,6 +7087,15 @@ _edje_edit_internal_save(Evas_Object *obj, int current_only)
      }
 
    eet_close(eetf);
+
+   /* Update mtime */
+   {
+     struct stat st;
+     if (stat(ed->path, &st) != 0)
+       return EINA_FALSE;
+     ef->mtime = st.st_mtime;
+   }
+
    INF("***********  Saving DONE ******************");
    return EINA_TRUE;
 }