hi;

On Tue, 2007-04-03 at 11:36 -0500, Kenneth Swanson wrote:
> Emmanuele Bassi wrote:
 
> > and here's the entry:
> > 
> >  
> > http://live.gnome.org/GTK2-Perl/FrequentlyAskedQuestions#head-a5b0807f1d7354a7c294930ebaa40e991d551dc9
> > 
> > should add nice anchors for some of the entries...
> 
> Are we not telling people the other, quick 'n' dirty way to get around 
> this?  That is, that if you have a long block of code in a callback or 
> some other code, you can add the line
> 
> Gtk2->main_iteration while(Gtk2->events_pending);
> 
> to get the GUI to update?  Or does that not work correctly anymore?

it's not the "kosher" solution: forcing the main loop to spin it's an
hack, and masks the real problem - that is: you are blocking the main
loop when you really should not do such thing.

also, idle and a timeout sources are not really events, so the functions
are even misleading in their names.

/me would really like for those two functions to be private to GTK+, but
sometimes kludges sift through.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,  E: [EMAIL PROTECTED]
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net

_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to