Re: Change mouse pointer to hourglass?



On Wed, 2004-08-25 at 19:47, Daniel Kasak wrote:

I've got another issue now.
The mouse pointer change only takes effect *after* the rest of my code ( 
that the user is waiting for, hence the hourglass ) has finished.

perhaps you should do clear the event queue before beginning your
processing:

# change cursor
Gtk2->main_iteration while (Gtk2->events_pending);
# do work
# change cursor back

depending on what's going on the above may ensure your cursor change
happens before you being your processing rather than after it's done and
you make it into a main loop through natural means.

-- 
-rm
http://www.neces.com/




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