[gnome-panel/wip/applets/clock] clock: add clock_location_get_tzid to ClockLocation



commit 848e9ecf48a1eef82261efc3337af1212dcf1c96
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Nov 15 02:11:04 2014 +0200

    clock: add clock_location_get_tzid to ClockLocation
    
    We need timezone id not name when we are editing ClockLocation
    data.

 applets/clock/clock-location.c |   10 ++++++++++
 applets/clock/clock-location.h |    1 +
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/applets/clock/clock-location.c b/applets/clock/clock-location.c
index 7c753c0..6df798c 100644
--- a/applets/clock/clock-location.c
+++ b/applets/clock/clock-location.c
@@ -362,6 +362,16 @@ clock_location_get_timezone (ClockLocation *loc)
 }
 
 const gchar *
+clock_location_get_tzid (ClockLocation *location)
+{
+       GWeatherTimezone *timezone;
+
+       timezone = gweather_location_get_timezone (location->priv->loc);
+
+       return gweather_timezone_get_tzid (timezone);
+}
+
+const gchar *
 clock_location_get_tzname (ClockLocation *loc)
 {
         ClockLocationPrivate *priv = loc->priv;
diff --git a/applets/clock/clock-location.h b/applets/clock/clock-location.h
index 2f54b9c..1aad78c 100644
--- a/applets/clock/clock-location.h
+++ b/applets/clock/clock-location.h
@@ -86,6 +86,7 @@ void                 clock_location_set_name              (ClockLocation *locati
 
 gchar               *clock_location_get_city              (ClockLocation *location);
 const gchar         *clock_location_get_timezone          (ClockLocation *location);
+const gchar         *clock_location_get_tzid              (ClockLocation *location);
 void                 clock_location_get_coords            (ClockLocation *location,
                                                            gdouble       *latitude,
                                                            gdouble       *longitude);


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