RE: time



Yes, g_timeout_add() is better.

Please remember to use "Reply To All" with mailing lists.

Murray Cumming
www.murrayc.com
murrayc usa net

glib is your friend:

g_timeout_add

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-Eve
nt-Loop.ht
ml#g
- idle-add

Murray Cumming
www.murrayc.com
murrayc usa net _______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



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