show image automatically



Hi,
(sorry for my bad english, i hope you can understand me)
My C program have this structure:
*****************************************************
......
...
-> get image from tv-card
-> open a window and load the image in the window
-> if you press a key :
{
                -> unload_image
                -> get new_image
                -> load new_image in the window
}
->gtk_main()
*****************************************************
and the program it is ok
Now I want get the image and show it automatically without key event.
How  can I do it?
threads?
gtk_timeout_add?

thanks
federico




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]