Displaying an image



Hi everybody! 
I need that a sequence of frames be displayed when
ready... so in C with gtk this works:

g_timeout_add(10, refresh, NULL);

The gtk main loop calls the refresh function each 10
miliseconds. refresh()  puts the frame in a pixbuf,
then a set to a gtkimage is done and then it is
showed.

With gtkmm I did:

sigc::slot<bool> conexion =
sigc::bind(sigc::mem_fun(*this,&acceso::refresh),0);
sigc::connection llamada =
Glib::signal_timeout().connect(conexion, 10);

There is another way to do it with gtkmm? I mean, in
GTK looks easier with only one line of code...

Thanks!

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 



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