diff options
author | Michael Terry <mike@mterry.name> | 2011-03-24 13:54:25 -0500 |
---|---|---|
committer | Michael Terry <mike@mterry.name> | 2011-03-24 13:54:25 -0500 |
commit | acfa619b0301301a733e820cdda8d9335a15b45f (patch) | |
tree | 6a97c8557c1235fdf8bd9db453e20d1d3d3b05f2 | |
parent | 0b0b94a49cd63bb1e1933cbe674c944c28ac24fb (diff) | |
download | ayatana-indicator-datetime-acfa619b0301301a733e820cdda8d9335a15b45f.tar.gz ayatana-indicator-datetime-acfa619b0301301a733e820cdda8d9335a15b45f.tar.bz2 ayatana-indicator-datetime-acfa619b0301301a733e820cdda8d9335a15b45f.zip |
show location separator even if no locations (since we always have the current location
-rw-r--r-- | src/datetime-service.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c index 65df77e..b166f3c 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -437,11 +437,11 @@ update_timezone_menu_items(gpointer user_data) { gboolean show = g_settings_get_boolean (conf, SETTINGS_SHOW_LOCATIONS_S); - if (len > 0) { - dbusmenu_menuitem_property_set_bool (locations_separator, DBUSMENU_MENUITEM_PROP_VISIBLE, show); - dbusmenu_menuitem_property_set_bool (current_location, DBUSMENU_MENUITEM_PROP_VISIBLE, show); - dbusmenu_menuitem_property_set_bool (current_location, DBUSMENU_MENUITEM_PROP_ENABLED, TRUE); - } else { + dbusmenu_menuitem_property_set_bool (locations_separator, DBUSMENU_MENUITEM_PROP_VISIBLE, show); + dbusmenu_menuitem_property_set_bool (current_location, DBUSMENU_MENUITEM_PROP_VISIBLE, show); + dbusmenu_menuitem_property_set_bool (current_location, DBUSMENU_MENUITEM_PROP_ENABLED, TRUE); + + if (len == 0) { g_debug("No locations configured (Empty List)"); return FALSE; } |