Re: Why does my cursor doesn't change



* Emmanuele Bassi <ebassi gmail com> [2007-04-03 18:50]:
On Tue, 2007-04-03 at 11:36 -0500, Kenneth Swanson wrote:
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âs true, but does it have any *tangible* drawbacks to kick
the mainloop manually? Is there any reason why this shouldnât be
used even in cases where it would be *much* harder to punt the
processing to a timeout callback (or a forked child)?

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



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