aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-01-13 14:55:06 -0600
committerTed Gould <ted@canonical.com>2009-01-13 14:55:06 -0600
commit1c7343c65ff2951229e028edaeffee25dd4482f9 (patch)
tree89285092f4332e3c16d2256285920c9b05930dbf
parent82dee9414fc6ae41006f1664c1be0636a15ca4dd (diff)
downloadlibayatana-indicator-1c7343c65ff2951229e028edaeffee25dd4482f9.tar.gz
libayatana-indicator-1c7343c65ff2951229e028edaeffee25dd4482f9.tar.bz2
libayatana-indicator-1c7343c65ff2951229e028edaeffee25dd4482f9.zip
Man, a lot of work for messing up one explaination point.
-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;