Re: [gtk-list] Re: [patch] mainloop



Owen> It's probably better not to call it recursively, when possible,
Owen> simply to avoid extra complexity.

When you are just using the main loop to handle GUI stuff, then it
makes sense to prefer grabs over recursive calls.  That's because
grabs have the right semantics, whereas recursive calls into the main
loop don't.

However, this came up because the original author was trying to
integrate ILU into the GTk main loop.  ILU doesn't do anything with
windows.  However it wants to have access to the main loop so that
events and such can be processed while (eg) it is waiting for an
answer to come back from a remote server.

ILU really wants a recursively callable main loop.

Tom
-- 
tromey@cygnus.com                 Member, League for Programming Freedom



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