Re: RE : Re: Why does my cursor doesn't change


On Tue, 2007-04-03 at 11:36 -0500, Kenneth Swanson wrote:
Emmanuele Bassi wrote:
and here's the entry:

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.


Emmanuele Bassi,  E: ebassi gmail com

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