diff options
author | Michael Terry <mike@mterry.name> | 2011-02-23 15:30:30 -0500 |
---|---|---|
committer | Michael Terry <mike@mterry.name> | 2011-02-23 15:30:30 -0500 |
commit | 66f988fe7a494e1aa12c161e415660fba247aaf4 (patch) | |
tree | 29f3482c577109384b4a46fe3630faa66c2c999a /src/indicator-datetime.c | |
parent | 02a56bbe87dba95388735c9961345b5166940b1c (diff) | |
download | ayatana-indicator-datetime-66f988fe7a494e1aa12c161e415660fba247aaf4.tar.gz ayatana-indicator-datetime-66f988fe7a494e1aa12c161e415660fba247aaf4.tar.bz2 ayatana-indicator-datetime-66f988fe7a494e1aa12c161e415660fba247aaf4.zip |
some cleanup; when map changes, update entry too
Diffstat (limited to 'src/indicator-datetime.c')
-rw-r--r-- | src/indicator-datetime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c index 33f78c4..2e336c7 100644 --- a/src/indicator-datetime.c +++ b/src/indicator-datetime.c @@ -1176,7 +1176,7 @@ timezone_toggled_cb (GtkCheckMenuItem *checkmenuitem, DbusmenuMenuitem * dbusite } static void -timezone_destroyed_cb (DbusmenuMenuitem * dbusitem, indicator_item_t * mi_data) +timezone_destroyed_cb (indicator_item_t * mi_data, DbusmenuMenuitem * dbusitem) { IndicatorDatetimePrivate *priv = INDICATOR_DATETIME_GET_PRIVATE(mi_data->self); priv->timezone_items = g_list_remove(priv->timezone_items, mi_data); @@ -1241,7 +1241,7 @@ new_timezone_item(DbusmenuMenuitem * newitem, g_signal_connect(G_OBJECT(mi_data->gmi), "toggled", G_CALLBACK(timezone_toggled_cb), newitem); g_signal_connect(G_OBJECT(newitem), DBUSMENU_MENUITEM_SIGNAL_PROPERTY_CHANGED, G_CALLBACK(indicator_prop_change_cb), mi_data); - g_signal_connect(G_OBJECT(newitem), "destroyed", G_CALLBACK(timezone_destroyed_cb), mi_data); + g_object_weak_ref(G_OBJECT(newitem), (GWeakNotify)timezone_destroyed_cb, mi_data); return TRUE; } |