summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/themes/default.edc4
-rw-r--r--src/lib/elm_theme.c10
2 files changed, 13 insertions, 1 deletions
diff --git a/data/themes/default.edc b/data/themes/default.edc
index 28544db8f..157d52fb6 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -2,6 +2,10 @@
2 2
3externals.external: "elm"; 3externals.external: "elm";
4 4
5// theme api version. from 1.10 on we will check version to avoid
6// compat issues
7data.item: "version" "110";
8
5collections { 9collections {
6#include "fonts.edc" 10#include "fonts.edc"
7#include "colorclasses.edc" 11#include "colorclasses.edc"
diff --git a/src/lib/elm_theme.c b/src/lib/elm_theme.c
index d6f47f020..9ba16f5fe 100644
--- a/src/lib/elm_theme.c
+++ b/src/lib/elm_theme.c
@@ -31,8 +31,16 @@ _elm_theme_item_finalize(Elm_Theme_Files *files,
31 Eina_File *f, 31 Eina_File *f,
32 Eina_Bool prepend) 32 Eina_Bool prepend)
33{ 33{
34 char *version;
35
34 if (!f) return; 36 if (!f) return;
35 37 if (!(version = edje_mmap_data_get(f, "version"))) return;
38 if (atoi(version) < 110) // bump this version number when we need to
39 {
40 free(version);
41 return;
42 }
43 free(version);
36 if (prepend) 44 if (prepend)
37 { 45 {
38 files->items = eina_list_prepend(files->items, 46 files->items = eina_list_prepend(files->items,