aboutsummaryrefslogtreecommitdiff
path: root/libindicate/server.c
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 /libindicate/server.c
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.
Diffstat (limited to 'libindicate/server.c')
-rw-r--r--libindicate/server.c4
1 files changed, 3 insertions, 1 deletions
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;