From aad3fa48e4c7f198b5453a93bef902fe633ff368 Mon Sep 17 00:00:00 2001 From: Rafael Fonseca Date: Mon, 12 Jul 2010 01:15:52 +0000 Subject: [PATCH] From: Rafael Fonseca Subject: [E-devel] [PATCH] [Elementary] Fix flickering issue on elm_slideshow Hey guys, the attached patch solves the issue of the previous image flickering after the transition is over on elm_slideshow. SVN revision: 50190 --- 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); } -- 2.7.4