Re: keeping track of time.

2005-09-20 Thread John Vetterli
On Mon, 19 Sep 2005, oracle nine wrote: I am writing billiards management program under gtk2 on Linux. Each billiards table is represented by a widget that will toggle the table open or closed. While a table is open, I want to insert a label that displays how much time has elapsed. I want the

Re: keeping track of time.

2005-09-20 Thread Tristan Van Berkom
John Vetterli wrote: [...] Use g_timeout_add to execute a callback function periodically. http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html The interval may not be terribly accurate, but if I understand your needs, this is not important. The callbacks would only cause