Re: Question on C



Drew Hess wrote:
On a related note, I'd like to make the GTK+ event loop select/poll on a
blocking file descriptor.  When it's ready to read, I want the event loop
to make a callback.  Should I use g_source_new(), g_source_add_poll(), and
g_source_set_callback () for this? Is there a higher-level GTK+ API that I should be using?

Ahhhh,

http://developer.gnome.org/doc/API/2.0/glib/glib-IO-Channels.html

Cheers,
             -Tristan




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