Re: Implementing Gtk2->main in select?
- From: brucealderson shaw ca
- To: Art?ras Šlajus <x11 h2o pieva net>
- Cc: gtk-perl-list gnome org
- Subject: Re: Implementing Gtk2->main in select?
- Date: Fri, 21 Nov 2003 09:18:42 -0800
----- Original Message -----
From: Art?ras Šlajus <x11 h2o pieva net>
Date: Friday, November 21, 2003 8:29 am
Subject: Implementing Gtk2->main in select?
Well I think you get the idea. So how i would add Gtk2->main so
it
doesn't stop watching on UDP ($listen) socket?
Just call the select code from a gtk timer:
Glib::Timeout->add(1000,
sub {
my_select_fn();
return 1; # keep on ticking
});
Put your select code in the my_select_fn(), and it will get called every 1000ms. Alternativly, you could
call the select function from the idle-timer, or could use the Glib (or is it Gtk2) event-mongrel socket
functions.
--
Bruce Alderson <mx warpedvisions org>
http://warpedvisions.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]