elementary/transit - do it as possible as in the last.

SVN revision: 83345
This commit is contained in:
ChunEon Park 2013-01-26 04:46:39 +00:00
parent 704f70ba81
commit 52f8ae6834
1 changed files with 8 additions and 7 deletions

View File

@ -2350,16 +2350,16 @@ _transit_effect_image_animation_op(Elm_Transit_Effect *effect, Elm_Transit *tran
unsigned int idx = 0; unsigned int idx = 0;
int len; int len;
type = eina_stringshare_add("elm_image");
//FIXME: Remove later when elm_icon is cleared.
type_deprecated = eina_stringshare_add("elm_icon");
len = eina_list_count(image_animation->images); len = eina_list_count(image_animation->images);
if (len) if (len)
{ {
idx = floor(progress * len); idx = floor(progress * len);
if (image_animation->prev_idx != idx) if (image_animation->prev_idx != idx)
{ {
type = eina_stringshare_add("elm_image");
//FIXME: Remove later when elm_icon is cleared.
type_deprecated = eina_stringshare_add("elm_icon");
EINA_LIST_FOREACH(transit->objs, elist, obj) EINA_LIST_FOREACH(transit->objs, elist, obj)
{ {
if (elm_widget_type_check(obj, type, __func__) || if (elm_widget_type_check(obj, type, __func__) ||
@ -2372,12 +2372,13 @@ _transit_effect_image_animation_op(Elm_Transit_Effect *effect, Elm_Transit *tran
elm_image_preload_disabled_set(obj, EINA_TRUE); elm_image_preload_disabled_set(obj, EINA_TRUE);
} }
} }
eina_stringshare_del(type);
eina_stringshare_del(type_deprecated);
} }
image_animation->prev_idx = idx; image_animation->prev_idx = idx;
} }
eina_stringshare_del(type);
eina_stringshare_del(type_deprecated);
} }
static Elm_Transit_Effect * static Elm_Transit_Effect *