aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-10-07 09:49:31 -0600
committerTed Gould <ted@gould.cx>2010-10-07 09:49:31 -0600
commit90339ca506cda5ee32b15d5273827abbb0fff55b (patch)
treeb55656181f359015a21d74beb0291932db30495b /src
parent2fb4d57632b33592b9ce56563a50a47be2b2544f (diff)
downloadayatana-indicator-datetime-90339ca506cda5ee32b15d5273827abbb0fff55b.tar.gz
ayatana-indicator-datetime-90339ca506cda5ee32b15d5273827abbb0fff55b.tar.bz2
ayatana-indicator-datetime-90339ca506cda5ee32b15d5273827abbb0fff55b.zip
Make a menuitem for setting a specific timezone
Diffstat (limited to 'src')
-rw-r--r--src/datetime-service.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 712bbd6..de17065 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -48,6 +48,7 @@ static DatetimeInterface * dbus = NULL;
static DbusmenuMenuitem * date = NULL;
static DbusmenuMenuitem * calendar = NULL;
static DbusmenuMenuitem * settings = NULL;
+static DbusmenuMenuitem * tzchange = NULL;
/* Geoclue trackers */
static GeoclueMasterClient * geo_master = NULL;
@@ -167,6 +168,11 @@ build_menus (DbusmenuMenuitem * root)
dbusmenu_menuitem_property_set(separator, DBUSMENU_MENUITEM_PROP_TYPE, DBUSMENU_CLIENT_TYPES_SEPARATOR);
dbusmenu_menuitem_child_append(root, separator);
+ tzchange = dbusmenu_menuitem_new();
+ dbusmenu_menuitem_property_set(tzchange, DBUSMENU_MENUITEM_PROP_LABEL, "Set specific timezone");
+ dbusmenu_menuitem_property_set_bool(tzchange, DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
+ dbusmenu_menuitem_child_append(root, tzchange);
+
settings = dbusmenu_menuitem_new();
dbusmenu_menuitem_property_set (settings, DBUSMENU_MENUITEM_PROP_LABEL, _("Time & Date Settings..."));
/* insensitive until we check for available apps */