aboutsummaryrefslogtreecommitdiff
path: root/src/messages-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-09 12:58:00 -0500
committerTed Gould <ted@canonical.com>2009-09-09 12:58:00 -0500
commitbf8b441386fe6c85c74fe57f7fc6d088051094d9 (patch)
treee5e3389f27cb8f4ba4cc415ceab250f52d175c7a /src/messages-service.c
parente1230edce3236b5825d4ea1da82ac3a5b6fda684 (diff)
downloadayatana-indicator-messages-bf8b441386fe6c85c74fe57f7fc6d088051094d9.tar.gz
ayatana-indicator-messages-bf8b441386fe6c85c74fe57f7fc6d088051094d9.tar.bz2
ayatana-indicator-messages-bf8b441386fe6c85c74fe57f7fc6d088051094d9.zip
When eclipsing a launcher we're hiding it's separator as well.
Diffstat (limited to 'src/messages-service.c')
-rw-r--r--src/messages-service.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 990cb3c..b672489 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -290,6 +290,7 @@ blacklist_add (gpointer udata)
launcherList_t * item = (launcherList_t *)launcher->data;
if (!g_strcmp0(trimdesktop, launcher_menu_item_get_desktop(item->menuitem))) {
launcher_menu_item_set_eclipsed(item->menuitem, TRUE);
+ dbusmenu_menuitem_property_set(item->separator, DBUSMENU_MENUITEM_PROP_VISIBLE, "false");
}
}
@@ -336,6 +337,7 @@ blacklist_remove (gpointer data)
}
if (serveritem == NULL) {
launcher_menu_item_set_eclipsed(li->menuitem, FALSE);
+ dbusmenu_menuitem_property_set(li->separator, DBUSMENU_MENUITEM_PROP_VISIBLE, "true");
}
}
}
@@ -970,6 +972,7 @@ check_eclipses (AppMenuItem * ai)
if (!g_strcmp0(aidesktop, lidesktop)) {
launcher_menu_item_set_eclipsed(ll->menuitem, TRUE);
+ dbusmenu_menuitem_property_set(ll->separator, DBUSMENU_MENUITEM_PROP_VISIBLE, "false");
break;
}
}
@@ -994,6 +997,7 @@ remove_eclipses (AppMenuItem * ai)
if (!g_strcmp0(aidesktop, lidesktop)) {
launcher_menu_item_set_eclipsed(ll->menuitem, FALSE);
+ dbusmenu_menuitem_property_set(ll->separator, DBUSMENU_MENUITEM_PROP_VISIBLE, "true");
break;
}
}
@@ -1108,6 +1112,7 @@ build_launcher (gpointer data)
if (blacklist_check(launcher_menu_item_get_desktop(ll->menuitem))) {
launcher_menu_item_set_eclipsed(ll->menuitem, TRUE);
+ dbusmenu_menuitem_property_set(ll->separator, DBUSMENU_MENUITEM_PROP_VISIBLE, "false");
}
} else {
/* If so add ourselves */