GNOME Bugzilla – Bug 693533
[WallClock] Add a timezone property
Last modified: 2013-02-12 08:06:56 UTC
I use wallclock in gnome-clocks and being able to be notified of tz changed without having to monitor the file myself would be great
Created attachment 235630 [details] [review] [WallClock] Add a timezone property This way a user can be notified of the change without having to monitor the timezone files itself. It also reduces the load of the wall clock itself since using g_date_time_new_now_local at every iteration forces reparsing of the timezone file etc.
Created attachment 235633 [details] [review] patch with getter Same patch, but with a public getter
Review of attachment 235633 [details] [review]: Two comments, after fixing looks good to commit. ::: libgnome-desktop/gnome-wall-clock.c @@ +319,3 @@ +{ + GnomeWallClock *self = data; + Need to do: if (self->priv->timezone) g_time_zone_unref (self->priv->timezone); @@ +353,3 @@ + +GTimeZone * +gnome_wall_clock_get_timezone (GnomeWallClock *clock) Needs a documentation comment; you want at least (transfer none) here
Thanks for the review... working on clocks in vala spoiled me with regard to unrefs :) I also added it to finalize and pushed it: http://git.gnome.org/browse/gnome-desktop/commit/?id=c14b46f36e57e146e3aa64cf9a994acc656a7693