diff options
author | Michael Terry <mike@mterry.name> | 2011-02-15 14:51:00 -0500 |
---|---|---|
committer | Michael Terry <mike@mterry.name> | 2011-02-15 14:51:00 -0500 |
commit | 030ba7689c5dabac3a0d84bb55c8fcec7d87737b (patch) | |
tree | 131c31dd3d758d3c39c9cdd15f9ae4ae0a85248e /src | |
parent | 36b4e93794c845e5caac71556b9a05d7e474d35a (diff) | |
download | ayatana-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
Diffstat (limited to 'src')
-rw-r--r-- | src/datetime-service.c | 4 |
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)); |