From 73c0659d30445a2202faf1d0b87c2464f02b51e3 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Mon, 13 Feb 2012 19:15:03 +0100 Subject: indicator_object_dispose: use _set_visible instead of reimplementing it --- libindicator/indicator-object.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c index a67b4e4..2ce40e2 100644 --- a/libindicator/indicator-object.c +++ b/libindicator/indicator-object.c @@ -337,21 +337,11 @@ static void indicator_object_dispose (GObject *object) { IndicatorObject * io = INDICATOR_OBJECT(object); + GList * entries = get_all_entries (io); /* Ensure that hidden entries are re-added so their widgetry will be cleaned up properly by the client */ - GList * l; - GList * entries = get_all_entries (io); - const GQuark detail = (GQuark)0; - for (l=entries; l!=NULL; l=l->next) { - IndicatorObjectEntry * entry = l->data; - if (entry_get_private(io, entry)->visibility == ENTRY_INVISIBLE) { - g_signal_emit(io, signals[ENTRY_ADDED], detail, entry); - } - - if (entry) - entry->parent_object = NULL; - } + indicator_object_set_visible (io, TRUE); g_list_free (entries); G_OBJECT_CLASS (indicator_object_parent_class)->dispose (object); -- cgit v1.2.3