From bcd0f8138130e25105221da8d64b0349592ad269 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Tue, 25 Jun 2013 11:20:25 +0900 Subject: [PATCH] elm_image_legacy.h: updated elm_image_file_set() documentation for animated gif image. --- legacy/elementary/src/lib/elm_image_legacy.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elm_image_legacy.h b/legacy/elementary/src/lib/elm_image_legacy.h index 7497437b16..563796f1a5 100644 --- a/legacy/elementary/src/lib/elm_image_legacy.h +++ b/legacy/elementary/src/lib/elm_image_legacy.h @@ -44,7 +44,8 @@ EAPI Eina_Bool elm_image_memfile_set(Evas_Object *obj, const void *img, s * @param obj The image object * @param file The path to file that will be used as image source * @param group The group that the image belongs to, in case it's an - * EET (including Edje case) file + * EET (including Edje case) file. This can be used as a key inside + * evas image cache if this is a normal image file not eet file. * * @return (@c EINA_TRUE = success, @c EINA_FALSE = error) * @@ -55,6 +56,11 @@ EAPI Eina_Bool elm_image_memfile_set(Evas_Object *obj, const void *img, s * case). If one wants to force this type of file independently of the * extension, elm_image_file_edje_set() must be used, instead. * + * @note If you use animated gif image and create multiple image objects with + * one gif image file, you should set the @group differently for each object. + * Or image objects will share one evas image cache entry and you will get + * unwanted frames. + * * @ingroup Image */ EAPI Eina_Bool elm_image_file_set(Evas_Object *obj, const char *file, const char *group);