aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Terry <mike@mterry.name>2011-02-15 14:53:47 -0500
committerMichael Terry <mike@mterry.name>2011-02-15 14:53:47 -0500
commitf704c6178715e68128e324490660aea5014eb2f7 (patch)
treea2bff9dc31a0d8cc27893bd3d9ee8d4170df49b8 /src
parent030ba7689c5dabac3a0d84bb55c8fcec7d87737b (diff)
downloadayatana-indicator-datetime-f704c6178715e68128e324490660aea5014eb2f7.tar.gz
ayatana-indicator-datetime-f704c6178715e68128e324490660aea5014eb2f7.tar.bz2
ayatana-indicator-datetime-f704c6178715e68128e324490660aea5014eb2f7.zip
show current or geo location if we are going to use them
Diffstat (limited to 'src')
-rw-r--r--src/datetime-service.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 0117be1..3c84551 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -148,6 +148,7 @@ check_timezone_sync (void) {
dbusmenu_menuitem_property_set (current_location, TIMEZONE_MENUITEM_PROP_LABEL, label);
// TODO work out the current time at that location
dbusmenu_menuitem_property_set (current_location, TIMEZONE_MENUITEM_PROP_RIGHT, "+tzone");
+ dbusmenu_menuitem_property_set_bool (current_location, DBUSMENU_MENUITEM_PROP_VISIBLE, TRUE);
} else {
g_debug("Label for current location is null, this shouldn't happen");
}
@@ -156,6 +157,7 @@ check_timezone_sync (void) {
dbusmenu_menuitem_property_set (geo_location, TIMEZONE_MENUITEM_PROP_LABEL, geo_timezone);
// TODO work out the current time at that location
dbusmenu_menuitem_property_set (geo_location, TIMEZONE_MENUITEM_PROP_RIGHT, "+tzone");
+ dbusmenu_menuitem_property_set_bool (geo_location, DBUSMENU_MENUITEM_PROP_VISIBLE, TRUE);
}
} else {
// TODO work out the geo location name in a nice way