From cd6fa3bab97768ef37ac4d6e2499f1a45aae596f Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 9 Sep 2013 12:43:31 -0500 Subject: in the Datetime base class, make a set_timezone() function for subclasses s.t. they don't have to reinvent the wheel. As a result, also remove the 'timezone changed' signale emitter helper --- src/timezone.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/timezone.h') diff --git a/src/timezone.h b/src/timezone.h index 076bedc..aaaa296 100644 --- a/src/timezone.h +++ b/src/timezone.h @@ -32,6 +32,7 @@ G_BEGIN_DECLS #define INDICATOR_IS_DATETIME_TIMEZONE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), INDICATOR_TYPE_DATETIME_TIMEZONE)) typedef struct _IndicatorDatetimeTimezone IndicatorDatetimeTimezone; +typedef struct _IndicatorDatetimeTimezonePriv IndicatorDatetimeTimezonePriv; typedef struct _IndicatorDatetimeTimezoneClass IndicatorDatetimeTimezoneClass; GType indicator_datetime_timezone_get_type (void); @@ -51,14 +52,12 @@ struct _IndicatorDatetimeTimezone { /*< private >*/ GObject parent; + IndicatorDatetimeTimezonePriv * priv; }; struct _IndicatorDatetimeTimezoneClass { GObjectClass parent_class; - - /* virtual functions */ - const char * (*get_timezone) (IndicatorDatetimeTimezone * self); }; /*** @@ -67,7 +66,8 @@ struct _IndicatorDatetimeTimezoneClass const char * indicator_datetime_timezone_get_timezone (IndicatorDatetimeTimezone *); -void indicator_datetime_timezone_notify_timezone (IndicatorDatetimeTimezone *); +void indicator_datetime_timezone_set_timezone (IndicatorDatetimeTimezone *, + const char * new_timezone); G_END_DECLS -- cgit v1.2.3