Hey guys,

the attached patch solves the issue of the previous image flickering after the transition is over on elm_slideshow.

If it is good can someone apply it, please?

BR.
--
Rafael Fonseca
ProFUSION embedded systems
http://www.profusion.mobi
>From 9190df6ce3b2f48a81238f70dd52071f20671692 Mon Sep 17 00:00:00 2001
From: Rafael Fonseca <rfon...@profusion.mobi>
Date: Sat, 10 Jul 2010 15:21:40 -0300
Subject: [PATCH] Avoid flickering on elm_slideshow.

---
 data/themes/default.edc |    9 +++++----
 src/lib/elm_slideshow.c |    3 ++-
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/data/themes/default.edc b/data/themes/default.edc
index 637d6c5..38d1a65 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -8764,13 +8764,14 @@ collections {
             after: "square_next_2";
          }
          program { name: "end";
+            action: SIGNAL_EMIT "end" "slideshow";
+         }
+         program { name: "end_signal";
+           signal: "anim,end";
+           source: "slideshow";
             action: STATE_SET "default" 0.0;
             target: "image_1_whole";
             target: "image_2_whole";
-            after: "end_signal";
-         }
-         program { name: "end_signal";
-            action: SIGNAL_EMIT "end" "slideshow";
          }
       }
    }
diff --git a/src/lib/elm_slideshow.c b/src/lib/elm_slideshow.c
index aa7d1a9..b60b4ee 100644
--- a/src/lib/elm_slideshow.c
+++ b/src/lib/elm_slideshow.c
@@ -121,8 +121,9 @@ _end(void *data, Evas_Object *obj __UNUSED__, const char 
*emission __UNUSED__, c
    if (!item || !item->o) return;
 
    edje_object_part_unswallow(NULL, item->o);
-   edje_object_part_swallow(wd->slideshow, "elm.swallow.1", item->o);
    evas_object_show(item->o);
+   edje_object_signal_emit(wd->slideshow, "anim,end", "slideshow");
+   edje_object_part_swallow(wd->slideshow, "elm.swallow.1", item->o);
 }
 
 
-- 
1.7.1.1

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to