Click here to get back home

Gtk and Glib::Timeout

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Gtk and Glib::Timeout Y.G. 06-08-2006
Posted by Y.G. on June 8, 2006, 7:30 am
Please log in for more thread options


I am writing a program in perl which invokes a small window. This window
should time out after some time. For the window I use Gtk2. For the
timeout I use Glib::Timeout

The code looks something like this:

my $dialog = new Gtk2::Dialog( );

(creating some buttons and all)

my $timer = Glib::Timeout->add( $interval, \&some_func));

Gtk2->main;


This returns Not a CODE reference at /program_path line line_number

Should I use Glib (and how?) or is there any other function I should use.

Similar ThreadsPosted
SSL LWP Timeout problem September 21, 2004, 2:25 pm
"500 SSL read timeout" September 27, 2004, 11:50 am
Net-DHCPClient cant get timeout September 12, 2006, 1:37 pm
Cannot get timeout error message from Net::Cmd January 4, 2005, 4:45 pm
IO::Socket default timeout September 25, 2006, 2:35 pm
Apache2::RequestIO::read: timeout error January 4, 2007, 3:32 pm
Need to handle the NNTP connection timeout in my code February 8, 2007, 4:51 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap