On Wed, 2007-07-11 at 08:59 +0200, Jonathan Winterflood wrote: > Hi, > > Could the GAsyncQueue be configured to run a callback in the main > thread when a element (or whatever gets pushed into it) is ready, just > like one woud do with a GIOChannel ? > > It would be cleaner than a timeout or an idle function I think.
If you want to use it on a Unix system, then a pipe is the cleanest way to do it. If you don't mind a bit of C++, this is an example: http://efax-gtk.cvs.sourceforge.net/*checkout*/efax-gtk/efax-gtk/src/utils/notifier.h http://efax-gtk.cvs.sourceforge.net/*checkout*/efax-gtk/efax-gtk/src/utils/notifier.cpp If you are using windows it is probably easiest to use a timeout. Chris _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list