Ephoto: Make animated images such as gifs play.

This commit is contained in:
Stephen okra Houston 2016-01-14 15:32:10 -06:00
parent 550c8064a6
commit 702148c09c
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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;