aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-04 15:30:48 -0500
committerTed Gould <ted@canonical.com>2009-10-04 15:30:48 -0500
commit735d17b40b609584d9a99c113c5848c0e5f759e4 (patch)
tree70895055340a853f81d3e69cd31a8f7682f45c3e /src
parent5bc25125ca5581ce9910007af68ee1c53b995d81 (diff)
downloadayatana-indicator-messages-735d17b40b609584d9a99c113c5848c0e5f759e4.tar.gz
ayatana-indicator-messages-735d17b40b609584d9a99c113c5848c0e5f759e4.tar.bz2
ayatana-indicator-messages-735d17b40b609584d9a99c113c5848c0e5f759e4.zip
Resort the menu after the blacklist has been checked case we've black listed the last item in the menu.
Diffstat (limited to 'src')
-rw-r--r--src/messages-service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 754d7ee..f5681b7 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -1147,7 +1147,6 @@ build_launcher (gpointer data)
/* Add it to the menu */
dbusmenu_menuitem_child_append(root_menuitem, DBUSMENU_MENUITEM(ll->menuitem));
dbusmenu_menuitem_child_append(root_menuitem, DBUSMENU_MENUITEM(ll->separator));
- resort_menu(root_menuitem);
/* If we're in the black list or we've gotten eclipsed
by something else, hide the item and the separator. */
@@ -1157,6 +1156,7 @@ build_launcher (gpointer data)
dbusmenu_menuitem_property_set(ll->separator, DBUSMENU_MENUITEM_PROP_VISIBLE, "false");
}
+ resort_menu(root_menuitem);
check_hidden();
} else {
/* If so add ourselves */