GNOME Bugzilla – Bug 156796
Changing time doesn't update until minute tick
Last modified: 2004-12-22 21:47:04 UTC
When "Show seconds" preference is unchecked time changes are not showed until the minute update.
Created attachment 33196 [details] [review] fix The attached patch emits the timeout every second (or internet second) but only update the clock when necessary.
*** Bug 156795 has been marked as a duplicate of this bug. ***
Comment on attachment 33196 [details] [review] fix >@@ -206,40 +206,26 @@ > clock_timeout_callback (gpointer data) > { > ClockData *cd = data; >+ time_t new_time; > >- update_clock (cd); >+ time (&new_time); > > if (!cd->showseconds && cd->format != CLOCK_FORMAT_UNIX) { You should probably add "&& cd->format != CLOCK_FORMAT_CUSTOM" because if the user chose a custom format, he might have specified %S in the format string. It's ok otherwise. I don't like the "timeout every second" idea, but there's no other way to handle this... You can commit this to HEAD. It's probably ok for gnome-2-8 too...
*** Bug 153231 has been marked as a duplicate of this bug. ***
I dont like the timeout thing either but ... That was a quick review, thanks! Checked in on both branches