anim = !!anim;
if (sd->anim == anim) return;
- if (sd->edje) return;
+ sd->anim = anim;
+ if (sd->edje)
+ {
+ edje_object_animation_set(sd->img, anim);
+ return;
+ }
sd->img = elm_image_object_get(obj);
if (!evas_object_image_animated_get(sd->img)) return;
sd->cur_frame = -1;
sd->frame_duration = -1;
}
- sd->anim = anim;
return;
}
EOLIAN static Eina_Bool
_elm_image_animated_get(Eo *obj EINA_UNUSED, Elm_Image_Data *sd)
{
+ if (sd->edje)
+ return edje_object_animation_get(sd->img);
return sd->anim;
}
{
if (!sd->anim) return;
if (sd->play == play) return;
-
- if (sd->edje) return;
-
+ sd->play = play;
+ if (sd->edje)
+ {
+ edje_object_play_set(sd->img, play);
+ return;
+ }
if (play)
{
sd->anim_timer = ecore_timer_add
{
ELM_SAFE_FREE(sd->anim_timer, ecore_timer_del);
}
- sd->play = play;
}
EOLIAN static Eina_Bool
_elm_image_animated_play_get(Eo *obj EINA_UNUSED, Elm_Image_Data *sd)
{
+ if (sd->edje)
+ return edje_object_play_get(sd->img);
return sd->play;
}