aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-02-13 19:08:27 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-02-13 19:08:27 +0100
commite7780ac9f99dda5fea04721be0b2b26050442c8c (patch)
treed8fcaff80f2f7d997d5593b6c81309a378796e78
parent5f599a8cabbbc451e6c0846598453eb2618d4405 (diff)
downloadlibayatana-indicator-e7780ac9f99dda5fea04721be0b2b26050442c8c.tar.gz
libayatana-indicator-e7780ac9f99dda5fea04721be0b2b26050442c8c.tar.bz2
libayatana-indicator-e7780ac9f99dda5fea04721be0b2b26050442c8c.zip
indicator_object_set_visible: no need to check for ENTRY_INIT
-rw-r--r--libindicator/indicator-object.c6
1 files 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);