After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 657075 - clock: Switch to using g_date_time_create_watch()
clock: Switch to using g_date_time_create_watch()
Status: RESOLVED DUPLICATE of bug 657074
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-08-22 13:22 UTC by Colin Walters
Modified: 2011-08-22 13:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
clock: Switch to using g_date_time_create_watch() (13.23 KB, patch)
2011-08-22 13:23 UTC, Colin Walters
none Details | Review

Description Colin Walters 2011-08-22 13:22:56 UTC
This avoids us having to poll once a second.  Because GSource isn't
introspectable, we need to make a C utility class.

Note that GTimezoneMonitor was never used in gnome-shell; here we also
add an inotify watch on /etc/localtime.

Thus the clock should update more or less instantly after:

1) A minute expires
2) The schema changes
3) The system realtime clock is modified discontiguously
  - Including resume from suspend
4) The system time zone changes

https://bugzilla.gnome.org/show_bug.cgi?id=657074
Comment 1 Colin Walters 2011-08-22 13:23:41 UTC
Created attachment 194362 [details] [review]
clock: Switch to using g_date_time_create_watch()
Comment 2 Colin Walters 2011-08-22 13:30:39 UTC

*** This bug has been marked as a duplicate of bug 657074 ***