diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-02-13 19:15:03 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-02-13 19:15:03 +0100 |
commit | 73c0659d30445a2202faf1d0b87c2464f02b51e3 (patch) | |
tree | 3a702082d2f050df090c88f7c2c2de666e0138bf /libindicator/indicator-object.c | |
parent | e7780ac9f99dda5fea04721be0b2b26050442c8c (diff) | |
download | libayatana-indicator-73c0659d30445a2202faf1d0b87c2464f02b51e3.tar.gz libayatana-indicator-73c0659d30445a2202faf1d0b87c2464f02b51e3.tar.bz2 libayatana-indicator-73c0659d30445a2202faf1d0b87c2464f02b51e3.zip |
indicator_object_dispose: use _set_visible instead of reimplementing it
Diffstat (limited to 'libindicator/indicator-object.c')
-rw-r--r-- | libindicator/indicator-object.c | 14 |
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); |