On Mon, Nov 17, 2008 at 21:10, Sergei Steshenko
<sergstesh yahoo com> wrote:
snip
I am not going to call Gtk2->main_quit just for fun, I want to
execute a
really lengthy subroutine taking up to, say, 10 seconds. I've
noticed that
shorter (a couple of seconds) subroutines work fine, but the long
ones
sometimes interfere with GUI behavior - it looks like some events are
either lost or are recognized out of order.
snip
The best way to deal with this is to continue to handle events during
you long subroutines. You can handle all pending events by saying
Gtk2->main_iteration while Gtk2->pending_events;
If your subroutine has loops, then it is a good idea to put the code
above at the top of the loops; otherwise, spread a few instances of
the code through your subroutine.