Ephoto: Make animated images such as gifs play.
This commit is contained in:
parent
550c8064a6
commit
702148c09c
|
@ -17,7 +17,7 @@ struct _Ephoto_Cropper
|
||||||
int starty;
|
int starty;
|
||||||
int offsetx;
|
int offsetx;
|
||||||
int offsety;
|
int offsety;
|
||||||
int resizing;
|
Eina_Bool resizing;
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -204,6 +204,11 @@ _viewer_add(Evas_Object *parent, const char *path, Ephoto_Single_Browser *sb)
|
||||||
_image_mouse_up_cb, sb);
|
_image_mouse_up_cb, sb);
|
||||||
elm_table_pack(v->table, v->image, 0, 0, 1, 1);
|
elm_table_pack(v->table, v->image, 0, 0, 1, 1);
|
||||||
evas_object_show(v->image);
|
evas_object_show(v->image);
|
||||||
|
if (elm_image_animated_available_get(v->image))
|
||||||
|
{
|
||||||
|
elm_image_animated_set(v->image, EINA_TRUE);
|
||||||
|
elm_image_animated_play_set(v->image, EINA_TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
return v->scroller;
|
return v->scroller;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue