aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libindicator/indicator-object.c14
1 files 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);