From fc6ee128cb49aaa96d433442d326db4c6141d48d Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Mon, 7 Apr 2014 11:48:50 +0200 Subject: desktop menu: don't show status section when no apps supports it --- src/im-menu.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/im-menu.c') 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 @@ -148,6 +148,20 @@ im_menu_export (ImMenu *menu, error) > 0; } +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) -- cgit v1.2.3