Re: How to setup a timer in gtk

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

 



El mié, 12-12-2007 a las 11:04 -0600, ying lcs escribió:> Hi,Hi,> > Can you please tell me how can I setup a timer in gtk application?> > It has a 'g_timeout_add()' function, but it 'Sets a function to be> called at regular intervals, with the default priority,> G_PRIORITY_DEFAULT.'> > But all I want is it call my function to be called only once when the> timer expires.> How can I do that?
According to the documentation: 'The function is called repeatedly untilit returns FALSE, at which point the timeout is automatically destroyedand the function will not be called again. The first call to thefunction will be at the end of the first interval.'
So you should simply return FALSE in your function. 
> > Thank you.> _______________________________________________> gtk-list mailing list> gtk-list@xxxxxxxxx> http://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________gtk-list mailing listgtk-list@xxxxxxxxxxxxx://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux