aboutsummaryrefslogtreecommitdiff
path: root/src/im-menu.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2014-04-08 16:24:38 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-04-08 16:24:38 +0000
commitab9d26c0746ac61895522ce62a98150ad0e1f942 (patch)
treeab839a51dbea3e2d53b2d3f1c6947feb63dea52f /src/im-menu.c
parent8782213594a5d08cb16a964dec3e3232cae18b24 (diff)
parentde9c80835a2facd1957d580f01e81209294406f6 (diff)
downloadayatana-indicator-messages-ab9d26c0746ac61895522ce62a98150ad0e1f942.tar.gz
ayatana-indicator-messages-ab9d26c0746ac61895522ce62a98150ad0e1f942.tar.bz2
ayatana-indicator-messages-ab9d26c0746ac61895522ce62a98150ad0e1f942.zip
Don't show the messaging menu and the status section when no app is registered for them Fixes: 1225063
Diffstat (limited to 'src/im-menu.c')
-rw-r--r--src/im-menu.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/im-menu.c b/src/im-menu.c
index 55ea99c..57cf957 100644
--- a/src/im-menu.c
+++ b/src/im-menu.c
@@ -149,6 +149,20 @@ im_menu_export (ImMenu *menu,
}
void
+im_menu_prepend_section (ImMenu *menu,
+ GMenuModel *section)
+{
+ ImMenuPrivate *priv;
+
+ g_return_if_fail (IM_IS_MENU (menu));
+ g_return_if_fail (G_IS_MENU_MODEL (section));
+
+ priv = im_menu_get_instance_private (menu);
+
+ g_menu_prepend_section (priv->menu, NULL, section);
+}
+
+void
im_menu_append_section (ImMenu *menu,
GMenuModel *section)
{