[maemo-developers] [maemo-developers] show pictures with delay

From: Tomas Junnonen (Nokia-M/Helsinki) tomas.junnonen at nokia.com
Date: Thu Sep 1 13:05:02 EEST 2005
ext rh wrote:
> Hi all,
>  
> I have a problem.
> I have 8 pictures & I want to display those pictures one by one in one 
> GtkImage, with 500ms delay in every picture.
> I try to refresh my Hildonapp, Hildonappview & GtkImage every 500 ms 
> automatically (loop), but the result is always the first picture show 
> off and then after 4 sec, the last pictures show off.
> Why the other pictures don't show off ?
> Does anyone know howto fix that problem ?

Impossible to say without the code. You do not need to refresh Hildonapp 
or Hildonappview, only the image, and you must do this after you have 
entered the main loop in your program, for example by using a timeout.

It sounds like you're trying to animate your image. Take a look at the 
gtk_image_new_from_animation, gdk_pixbuf_simple_anim_new and 
gdk_pixbuf_simple_anim_add_frame functions. They should do what you want.

Regards,
Tomas

More information about the maemo-developers mailing list