diff options
author | Ted Gould <ted@canonical.com> | 2009-08-26 12:44:48 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-08-26 12:44:48 -0500 |
commit | 7f0a072a9c1f1efc914c132b1e208b05176f7de9 (patch) | |
tree | 538e86457d57eed996d973dbfa396691e4837456 | |
parent | a13c1cb4fad904f91df3b32bad5d49918cab01da (diff) | |
download | ayatana-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.
-rw-r--r-- | src/launcher-menu-item.c | 3 | ||||
-rw-r--r-- | src/messages-service.c | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/launcher-menu-item.c b/src/launcher-menu-item.c index d9c35a8..802575f 100644 --- a/src/launcher-menu-item.c +++ b/src/launcher-menu-item.c @@ -202,7 +202,8 @@ launcher_menu_item_get_eclipsed (LauncherMenuItem * li) if (show == NULL) { return FALSE; } - if (!g_strcmp0(show, "true")) { + g_debug("Launcher check eclipse: %s", show); + if (!g_strcmp0(show, "false")) { return TRUE; } return FALSE; 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; } } |