aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-26 12:45:31 -0500
committerTed Gould <ted@canonical.com>2009-08-26 12:45:31 -0500
commitfa36210d47867bcdf1517d43b70234b85d62029b (patch)
treeb0bebcf7f989cf93220e93db89667b1d5a64309c
parent8722e7bd565e353b8268a7f403020f278cb1f13b (diff)
parent7f0a072a9c1f1efc914c132b1e208b05176f7de9 (diff)
downloadayatana-indicator-messages-fa36210d47867bcdf1517d43b70234b85d62029b.tar.gz
ayatana-indicator-messages-fa36210d47867bcdf1517d43b70234b85d62029b.tar.bz2
ayatana-indicator-messages-fa36210d47867bcdf1517d43b70234b85d62029b.zip
Fixing logic for hiding the icon
-rw-r--r--debian/changelog6
-rw-r--r--src/launcher-menu-item.c3
-rw-r--r--src/messages-service.c5
3 files changed, 12 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index c7322f5..6999198 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+indicator-messages (0.2.0~bzr126-0ubuntu1~ppa2~dot-and-hide6) UNRELEASED; urgency=low
+
+ * Fixing logic for hiding the icon
+
+ -- Ted Gould <ted@ubuntu.com> Wed, 26 Aug 2009 12:45:03 -0500
+
indicator-messages (0.2.0~bzr126-0ubuntu1~ppa2~dot-and-hide5) karmic; urgency=low
* Hide the icon, with logic.
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;
}
}