From e7780ac9f99dda5fea04721be0b2b26050442c8c Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Mon, 13 Feb 2012 19:08:27 +0100 Subject: indicator_object_set_visible: no need to check for ENTRY_INIT --- libindicator/indicator-object.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c index 1d0db58..a67b4e4 100644 --- a/libindicator/indicator-object.c +++ b/libindicator/indicator-object.c @@ -889,11 +889,9 @@ indicator_object_set_visible (IndicatorObject * io, gboolean visible) EntryVisibility visibility = visible ? ENTRY_VISIBLE : ENTRY_INVISIBLE; const GQuark detail = (GQuark)0; - for (l=entries; l!=NULL; l=l->next) - { + for (l=entries; l!=NULL; l=l->next) { IndicatorObjectEntry *entry = l->data; - EntryVisibility v = entry_get_private (io, entry)->visibility; - if (v == ENTRY_INIT || v != visibility) + if (entry_get_private (io, entry)->visibility != visibility) g_signal_emit(io, signal_id, detail, entry); } g_list_free (entries); -- cgit v1.2.3