Re: while loop and select
| From: | Christian Weiske | Date: | Sun, 18 Dec 2005 12:28:44 +0000 |
| Subject: | Re: while loop and select | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6429@lists.php.net to get a copy of this message | ||
Will,
> I'm relatively new to GTK. Is it possible (it's surely difficult) to
> create a custom GTK object that that is queried by the event
> handler like any other control, but who's data source is a select()
> statement rather than a mouse or click event.?
What you could do is create your own widget which lets the main loop
call a specific function every X milliseconds - Gtk::timeout_add() or
so. As long as the main loop runs, you can check for new data in it and
go on if there are none.
--
Regards/MfG,
Christian Weiske
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc