[gtkmm] Widget: Added get_action_group() and list_action_prefixes().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Widget: Added get_action_group() and list_action_prefixes().
- Date: Mon, 15 Dec 2014 13:23:29 +0000 (UTC)
commit faa38d48840ae41b7787c42b4bc9f276bd7da174
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Dec 15 14:18:10 2014 +0100
Widget: Added get_action_group() and list_action_prefixes().
gtk/src/widget.hg | 7 +++++++
tools/m4/convert_gtk.m4 | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/widget.hg b/gtk/src/widget.hg
index 85d38fe..3dbc95b 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -617,6 +617,13 @@ public:
*/
void remove_action_group(const Glib::ustring& name);
+ _WRAP_METHOD(Glib::RefPtr<Gio::ActionGroup> get_action_group(const Glib::ustring& prefix),
gtk_widget_get_action_group, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<const Gio::ActionGroup> get_action_group(const Glib::ustring& prefix) const,
gtk_widget_get_action_group, refreturn, constversion)
+
+#m4 _CONVERSION(`const
gchar**',`std::vector<Glib::ustring>',`Glib::ArrayHandler<Glib::ustring>::array_to_vector($3,
Glib::OWNERSHIP_SHALLOW)')
+ _WRAP_METHOD(std::vector<Glib::ustring> list_action_prefixes() const, gtk_widget_list_action_prefixes)
+
+
_WRAP_SIGNAL(void show(),"show")
_WRAP_SIGNAL(void hide(),"hide", custom_c_callback)
diff --git a/tools/m4/convert_gtk.m4 b/tools/m4/convert_gtk.m4
index 9b90251..e65a0c8 100644
--- a/tools/m4/convert_gtk.m4
+++ b/tools/m4/convert_gtk.m4
@@ -719,6 +719,8 @@ _CONVERSION(`GMenuModel*',`Glib::RefPtr<Gio::MenuModel>',`Glib::wrap($3)')
_CONVERSION(`GMenuModel*',`Glib::RefPtr<const Gio::MenuModel>',`Glib::wrap($3)')
_CONVERSION(`const
Glib::RefPtr<Gio::ActionGroup>&',`GActionGroup*',__CONVERT_CONST_REFPTR_TO_P_SUN(Gio::ActionGroup))
+_CONVERSION(`GActionGroup*',`Glib::RefPtr<Gio::ActionGroup>',`Glib::wrap($3)')
+_CONVERSION(`GActionGroup*',`Glib::RefPtr<const Gio::ActionGroup>',`Glib::wrap($3)')
_CONVERSION(`GtkDragResult',`DragResult',`($2)$3')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]