Re: gtk and timer events



On Tue, 2007-03-13 at 11:19 -0400, tj wrote:
> Hello, I am new to gtk and I need to port an application to it. However, 
> there is one thing that I noticed right off of the bat.
> 
> It seems there is no timer event. Like in other widget tool kits where 
> you create a timer associated with a window ID and give it a timeout 
> value. When it times out it generates a timer event to that window.
> 
> If there is no timeout event, how do apps that "move" objects across a 
> screen, like a game, do so while still entering the event loop to wait 
> for user/system inputs?
> 
> Have I just overlooked it or isit just not there?

g_timeout_add (msecs, function, pointer_arg)

its part of the "main event loop" structure that lives in glib, not gtk,
hence its not part of gtk but glib. 




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