forked from enlightenment/efl
elementary/transit - do it as possible as in the last.
SVN revision: 83345
This commit is contained in:
parent
704f70ba81
commit
52f8ae6834
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
image_animation->prev_idx = idx;
|
|
||||||
}
|
|
||||||
|
|
||||||
eina_stringshare_del(type);
|
eina_stringshare_del(type);
|
||||||
eina_stringshare_del(type_deprecated);
|
eina_stringshare_del(type_deprecated);
|
||||||
|
|
||||||
|
}
|
||||||
|
image_animation->prev_idx = idx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static Elm_Transit_Effect *
|
static Elm_Transit_Effect *
|
||||||
|
|
Loading…
Reference in New Issue