On Tue, Jul 20, 2010 at 3:04 PM, Enlightenment SVN
<no-re...@enlightenment.org> wrote:
> Log:
>  els_icon: preload the image
> Author:       watchwolf
> Date:         2010-07-20 11:04:37 -0700 (Tue, 20 Jul 2010)
> New Revision: 50384
>
> Modified:
>  trunk/TMP/st/elementary/src/lib/els_icon.c
>
> Modified: trunk/TMP/st/elementary/src/lib/els_icon.c
> ===================================================================
> --- trunk/TMP/st/elementary/src/lib/els_icon.c  2010-07-20 16:36:31 UTC (rev 
> 50383)
> +++ trunk/TMP/st/elementary/src/lib/els_icon.c  2010-07-20 18:04:37 UTC (rev 
> 50384)
> @@ -53,6 +53,7 @@
>    if (sd->size != 0)
>      evas_object_image_load_size_set(sd->obj, sd->size, sd->size);
>    evas_object_image_file_set(sd->obj, file, key);
> +   evas_object_image_preload(sd->obj, EINA_FALSE);

this alone will not do the trick! You must keep the sd->obj HIDDEN
until the EVAS_CALLBACK_IMAGE_PRELOADED signal is called. If you
don't, then Evas will cancel the preload and force it to be loaded
immediately when image becomes visible on the screen.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to