summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2013-08-29 15:17:43 +0200
committerBoris Faure <billiob@gmail.com>2013-08-29 15:17:43 +0200
commit7faf2eb13312664192687edacd8c8b0b6588d5e0 (patch)
tree8b21697634fd5970cc39a70f7f5ad3f2cf928372
parent2c5828f5e2e5e1d2b69cfe2eeaf270d70efbb7ae (diff)
make themes compile with efl 1.7
Issue was reported in T143
-rw-r--r--data/themes/default.edc6
-rw-r--r--data/themes/mild.edc6
2 files changed, 12 insertions, 0 deletions
diff --git a/data/themes/default.edc b/data/themes/default.edc
index 16970ef..670c7a4 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -2619,9 +2619,15 @@ target: "4.bottom"
2619 program { 2619 program {
2620 signal: "key,down"; source: "terminology"; 2620 signal: "key,down"; source: "terminology";
2621 script { 2621 script {
2622#if (EINA_VERSION_MAJOR > 1) || (EINA_VERSION_MINOR >= 8)
2622 new buf[32]; 2623 new buf[32];
2623 snprintf(buf, 31, "key-down%i", (rand() % 5) + 1); 2624 snprintf(buf, 31, "key-down%i", (rand() % 5) + 1);
2624 run_program(get_program_id(buf)); 2625 run_program(get_program_id(buf));
2626#else
2627 run_program(PROGRAM:"key-down4"); // chosen by a fair dice roll
2628 // guaranteed to be random.
2629 // http://xkcd.com/221/
2630#endif
2625 } 2631 }
2626 } 2632 }
2627 program { name: "key-down1"; 2633 program { name: "key-down1";
diff --git a/data/themes/mild.edc b/data/themes/mild.edc
index f2a85cc..89c2227 100644
--- a/data/themes/mild.edc
+++ b/data/themes/mild.edc
@@ -1210,9 +1210,15 @@ collections {
1210 program { 1210 program {
1211 signal: "key,down"; source: "terminology"; 1211 signal: "key,down"; source: "terminology";
1212 script { 1212 script {
1213#if (EINA_VERSION_MAJOR > 1) || (EINA_VERSION_MINOR >= 8)
1213 new buf[32]; 1214 new buf[32];
1214 snprintf(buf, 31, "key-down%i", (rand() % 5) + 1); 1215 snprintf(buf, 31, "key-down%i", (rand() % 5) + 1);
1215 run_program(get_program_id(buf)); 1216 run_program(get_program_id(buf));
1217#else
1218 run_program(PROGRAM:"key-down4"); // chosen by a fair dice roll
1219 // guaranteed to be random.
1220 // http://xkcd.com/221/
1221#endif
1216 } 1222 }
1217 } 1223 }
1218 program { name: "key-down1"; 1224 program { name: "key-down1";