aboutsummaryrefslogtreecommitdiff
path: root/src/messages-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-26 12:44:48 -0500
committerTed Gould <ted@canonical.com>2009-08-26 12:44:48 -0500
commit7f0a072a9c1f1efc914c132b1e208b05176f7de9 (patch)
tree538e86457d57eed996d973dbfa396691e4837456 /src/messages-service.c
parenta13c1cb4fad904f91df3b32bad5d49918cab01da (diff)
downloadayatana-indicator-messages-7f0a072a9c1f1efc914c132b1e208b05176f7de9.tar.gz
ayatana-indicator-messages-7f0a072a9c1f1efc914c132b1e208b05176f7de9.tar.bz2
ayatana-indicator-messages-7f0a072a9c1f1efc914c132b1e208b05176f7de9.zip
Some debug messages and checking the list length, but most importantly, got the show/eclipsed logic backwards.
Diffstat (limited to 'src/messages-service.c')
-rw-r--r--src/messages-service.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 23721be..a5af895 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -575,10 +575,13 @@ menushell_foreach_cb (DbusmenuMenuitem * data_mi, gpointer data_ms) {
static void
check_hidden (void)
{
+ g_debug("Checking Hidden...");
gboolean hide = FALSE;
if (launcherList_count() == 0) {
+ g_debug("\tZero Launchers");
/* If we don't have visible launchers we need to look more */
- if (serverList != NULL) { /* Basically if there are zero entries it'll be NULL */
+ if (g_list_length(serverList) == 0) {
+ g_debug("\tZero Applications");
hide = TRUE;
}
}