diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2014-04-07 11:48:50 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2014-04-07 11:48:50 +0200 |
commit | fc6ee128cb49aaa96d433442d326db4c6141d48d (patch) | |
tree | 399ab8bfcc46254eec33ffd9b9a6ab2b1657b3ec /src/im-menu.c | |
parent | 67c7bc304d79f9cd61370430de172acb6a2f7834 (diff) | |
download | ayatana-indicator-messages-fc6ee128cb49aaa96d433442d326db4c6141d48d.tar.gz ayatana-indicator-messages-fc6ee128cb49aaa96d433442d326db4c6141d48d.tar.bz2 ayatana-indicator-messages-fc6ee128cb49aaa96d433442d326db4c6141d48d.zip |
desktop menu: don't show status section when no apps supports it
Diffstat (limited to 'src/im-menu.c')
-rw-r--r-- | src/im-menu.c | 14 |
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) { |