Re: [gtk-list] Re: GTK+ GUI target for emacs?



Havoc Pennington <hp@redhat.com> writes: 
> It looks like the easiest way to fix the event loop is to just use the
> glib event loop as the main one, because it's more powerful than the

An important point that may need clarification: the glib loop is
separate from GTK, gtk_main() is just a trivial wrapper around
it. glib of course does not require the use of X or any other GUI, and
runs on Windows, pretty much any UNIX, etc. glib is also a reasonably
small library.

The per-user GConf daemon for example uses the glib main loop, it is
ideal for daemons. No GUI involved there.

A nice feature of the glib event loop is that you can add any kind of
source to watch for events, not just file descriptors; sources are
defined by a simple virtual table, you implement a few functions to
fill the event source interface.

Havoc



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