Re: time
- From: IanBell <ian redtommo com>
- To: gtk-app-devel-list gnome org
- Subject: Re: time
- Date: Tue, 20 Jan 2004 14:31:55 +0000
On Tuesday 20 Jan 2004 10:00 am, Murray Cumming Comneon com wrote:
Hi,
How can i do to display the current time dynamically in a
status bar ? I know how to display the time in the the status
bar but not how to
increment the seconds (minutes, hours) and then to display them
each second.
So how can i update the status bar each second ?
Thanks,
Maybe you could do it in an idle callback handler:
http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html#g
- idle-add
Or simply use a gtk timeout set to one second and update the status bar in its
callback.
Ian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]