aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Terry <mike@mterry.name>2011-02-15 14:51:00 -0500
committerMichael Terry <mike@mterry.name>2011-02-15 14:51:00 -0500
commit030ba7689c5dabac3a0d84bb55c8fcec7d87737b (patch)
tree131c31dd3d758d3c39c9cdd15f9ae4ae0a85248e
parent36b4e93794c845e5caac71556b9a05d7e474d35a (diff)
downloadayatana-indicator-datetime-030ba7689c5dabac3a0d84bb55c8fcec7d87737b.tar.gz
ayatana-indicator-datetime-030ba7689c5dabac3a0d84bb55c8fcec7d87737b.tar.bz2
ayatana-indicator-datetime-030ba7689c5dabac3a0d84bb55c8fcec7d87737b.zip
fix typo that prevented old locations from being deleted
-rw-r--r--src/datetime-service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 10f53df..0117be1 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -367,10 +367,10 @@ update_timezone_menu_items(gpointer user_data) {
/* Remove all of the previous locations */
if (dconflocations != NULL) {
g_debug("Freeing old locations");
- while (appointments != NULL) {
+ while (dconflocations != NULL) {
DbusmenuMenuitem * litem = DBUSMENU_MENUITEM(dconflocations->data);
g_debug("Freeing old location: %p", litem);
- // Remove all the existing menu items which are in appointments.
+ // Remove all the existing menu items which are in dconflocations.
dconflocations = g_list_remove(dconflocations, litem);
dbusmenu_menuitem_child_delete(root, DBUSMENU_MENUITEM(litem));
g_object_unref(G_OBJECT(litem));