aboutsummaryrefslogtreecommitdiff
path: root/src/messages-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-26 11:18:12 -0500
committerTed Gould <ted@canonical.com>2009-08-26 11:18:12 -0500
commitd9debb0b236b8e1e3e404224d128443c9fb50819 (patch)
tree1e87c98104f107e87c855d16e4e63bdcad2169c2 /src/messages-service.c
parent81ad298ac031b8a1d3727f00f19b7d82bef981f8 (diff)
downloadayatana-indicator-messages-d9debb0b236b8e1e3e404224d128443c9fb50819.tar.gz
ayatana-indicator-messages-d9debb0b236b8e1e3e404224d128443c9fb50819.tar.bz2
ayatana-indicator-messages-d9debb0b236b8e1e3e404224d128443c9fb50819.zip
Putting in the hiding logic
Diffstat (limited to 'src/messages-service.c')
-rw-r--r--src/messages-service.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 5632c22..d2f0785 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -573,7 +573,15 @@ menushell_foreach_cb (DbusmenuMenuitem * data_mi, gpointer data_ms) {
static void
check_hidden (void)
{
- launcherList_count();
+ gboolean hide = FALSE;
+ if (launcherList_count() == 0) {
+ /* 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 */
+ hide = TRUE;
+ }
+ }
+
+ message_service_dbus_set_icon(dbus_interface, hide);
return;
}