Re: Timeout




Torsten Schoenfeld said:
On Mon, 2005-05-16 at 17:51 +0300, Emanoil Daniel Carlan wrote:

Hi, can anyone tell me how to set up / disable a timeout?
I know in GTK it works with $timer = Gtk->timeout_add( $nr, \&Smth );
I just don't know how to do it in Gtk2...

It's Glib::Timeout->add($interval, \&sub) in Gtk2.  See

  perldoc Glib::MainLoop

for more information.


Gtk->timeout_add and friends are mentioned explicitly in the Gtk2::api
manpage, as well as in the Gtk-Perl to Gtk2-Perl porting guide, which i'll
wager would be useful to you if you're dealing with Gtk-Perl code.

http://gtk2-perl.sourceforge.net/doc/porting.html


-- 
muppet <scott at asofyet dot org>




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