diff options
author | Murray Cumming <murrayc@murrayc.com> | 2012-09-01 14:43:28 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2012-09-01 14:43:28 +0200 |
commit | e62f7c68fb1d53627041ff894b913333d01d6c13 (patch) | |
tree | dc3ef9f61fee03f30bed1c6ab39e17ae6d73913e /gio/src/menu.hg | |
parent | 71873302bfb5a187f814294d6e75e14660298a6f (diff) | |
download | glibmm-e62f7c68fb1d53627041ff894b913333d01d6c13.tar.gz |
Gio: Menu, MenuModel: Wrap some new methods.
* gio/src/menu.hg: Add append_section().
* gio/src/menumodel.hg: Add is_mutable() and get_n_items().
Diffstat (limited to 'gio/src/menu.hg')
-rw-r--r-- | gio/src/menu.hg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gio/src/menu.hg b/gio/src/menu.hg index 1b28578d..0f527340 100644 --- a/gio/src/menu.hg +++ b/gio/src/menu.hg @@ -46,12 +46,14 @@ public: _WRAP_METHOD(void append_item(const Glib::RefPtr<MenuItem>& item), g_menu_append_item) _WRAP_METHOD(void remove(int position), g_menu_remove) +//TODO: Allow label to be null. _WRAP_METHOD(void insert(int position, const Glib::ustring& label, const Glib::ustring& detailed_action = Glib::ustring()), g_menu_insert) _WRAP_METHOD(void prepend(const Glib::ustring& label, const Glib::ustring& detailed_action = Glib::ustring()), g_menu_prepend) _WRAP_METHOD(void append(const Glib::ustring& label, const Glib::ustring& detailed_action = Glib::ustring()), g_menu_append) _WRAP_METHOD(void insert_section(int position, const Glib::ustring& label, const Glib::RefPtr<MenuModel>& section), g_menu_insert_section) _WRAP_METHOD(void prepend_section(const Glib::ustring& label, const Glib::RefPtr<MenuModel>& section), g_menu_prepend_section) + _WRAP_METHOD(void append_section(const Glib::ustring& label, const Glib::RefPtr<MenuModel>& section), g_menu_append_section) _WRAP_METHOD(void insert_submenu(int position, const Glib::ustring& label, const Glib::RefPtr<MenuModel>& submenu), g_menu_insert_submenu) _WRAP_METHOD(void prepend_submenu(const Glib::ustring& label, const Glib::RefPtr<MenuModel>& submenu), g_menu_prepend_submenu) |