aboutsummaryrefslogtreecommitdiff
path: root/libindicate
diff options
context:
space:
mode:
Diffstat (limited to 'libindicate')
-rw-r--r--libindicate/indicator.c4
-rw-r--r--libindicate/server.c4
2 files changed, 7 insertions, 1 deletions
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;