davemds pushed a commit to branch master.

http://git.enlightenment.org/enlightenment/modules/penguins.git/commit/?id=fcdc7e60a7333ec5bf932e0cce92f5e2d724139e

commit fcdc7e60a7333ec5bf932e0cce92f5e2d724139e
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Fri Mar 18 21:19:27 2016 +0100

    stupid fix to support E > 20
---
 .gitignore           | 1 +
 src/e_mod_penguins.c | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore
index c061086..674a169 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,6 +14,7 @@ config.rpath
 config.status
 config.sub
 configure
+compile
 depcomp
 e-module-penguins.edj
 e_modules-penguins.spec
diff --git a/src/e_mod_penguins.c b/src/e_mod_penguins.c
index 7bc5cd7..1e17971 100644
--- a/src/e_mod_penguins.c
+++ b/src/e_mod_penguins.c
@@ -287,7 +287,7 @@ _population_load(void)
 
    // Build a temporary flat list of E_Zone*
    printf("PENGUINS: Hooking zones...\n");
-   #if E_VERSION_MAJOR == 20
+   #if E_VERSION_MAJOR >= 20
       EINA_LIST_FOREACH(e_comp->zones, l2, zone)
       {
          zones = eina_list_append(zones, zone);
@@ -316,7 +316,7 @@ _population_load(void)
       if (!tux) return;
 
       tux->zone = eina_list_nth(zones, i % eina_list_count(zones));
-#if E_VERSION_MAJOR == 20
+#if E_VERSION_MAJOR >= 20
       tux->obj = edje_object_add(e_comp->evas);
 #else
       tux->obj = edje_object_add(tux->zone->comp->evas);
@@ -590,7 +590,7 @@ static int
 _is_inside_any_win(Penguins_Actor *tux, int x, int y, int ret_value)
 {
    Evas_Object *o;
-#if E_VERSION_MAJOR == 20
+#if E_VERSION_MAJOR >= 20
    o = evas_object_top_get(e_comp->evas);
 #else
    o = evas_object_top_get(tux->zone->comp->evas);

-- 


Reply via email to