From 1c7343c65ff2951229e028edaeffee25dd4482f9 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 13 Jan 2009 14:55:06 -0600 Subject: Man, a lot of work for messing up one explaination point. --- libindicate/indicator.c | 4 ++++ libindicate/server.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'libindicate') diff --git a/libindicate/indicator.c b/libindicate/indicator.c index 8121ceb..119a479 100644 --- a/libindicate/indicator.c +++ b/libindicate/indicator.c @@ -99,6 +99,8 @@ indicate_indicator_show (IndicateIndicator * indicator) indicator->is_visible = TRUE; g_signal_emit(indicator, signals[SHOW], 0, TRUE); + + return; } void @@ -110,6 +112,8 @@ indicate_indicator_hide (IndicateIndicator * indicator) indicator->is_visible = FALSE; g_signal_emit(indicator, signals[HIDE], 0, TRUE); + + return; } gboolean diff --git a/libindicate/server.c b/libindicate/server.c index 8c0f956..08b6849 100644 --- a/libindicate/server.c +++ b/libindicate/server.c @@ -268,11 +268,12 @@ static void count_by_type (IndicateIndicator * indicator, count_by_t * cbt) { g_return_if_fail(INDICATE_IS_INDICATOR(indicator)); - if (indicate_indicator_is_visible(indicator)) { + if (!indicate_indicator_is_visible(indicator)) { return; } const gchar * type = indicate_indicator_get_indicator_type(indicator); + /* g_debug("Looking for indicator of type '%s' and have type '%s'", cbt->type, type); */ if (type == NULL && cbt->type == NULL) { cbt->count++; @@ -287,6 +288,7 @@ count_by_type (IndicateIndicator * indicator, count_by_t * cbt) static gboolean get_indicator_count_by_type (IndicateServer * server, gchar * type, guint * count, GError **error) { + /* g_debug("get_indicator_count_by_type: '%s'", type); */ count_by_t cbt; cbt.type = type; cbt.count = 0; -- cgit v1.2.3