diff options
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) { |