Re: implementing a delayed "busy" cursor



paul davis wrote:
 > On Sun, 2007-08-05 at 12:56 -0400, Paul Fox wrote:
 > 
 > google gtk timeout -> gtk_timeout_add -> gtk.org/api -> Main Loop &
 > Events -> "gtk_timeout_add has been deprecated since version 2.4 and
 > should not be used in newly-written code. Use g_timeout_add() instead."
 > 
 > and no, these run synchronously with the main loop, which is why they
 > are safe to use.

thanks -- i'll do some reading.  at the moment, i'm not sure how
this will work.  if i set a gtk timeout for 1 second, but my
program's "think" time is 10 seconds, then i won't get back to
the event loop until after that, and i've therefore blown my
intended timeout.

but i've probably just given myself away as the gtk newb that i
am, and am probably missing something really obvious, so i'll go
do some reading, like i said.

(i'm actually kind of surprised there's no gdk_window_set_cursor_after_delay()
call, for just this purpose. :-)

paul
=---------------------
 paul fox, pgf foxharp boston ma us (arlington, ma, where it's 74.1 degrees)



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