[gtkmm] ActionGroup: Add get/set_accel_group().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] ActionGroup: Add get/set_accel_group().
- Date: Mon, 25 Mar 2013 10:11:04 +0000 (UTC)
commit 4fbd0aa7ffd31343bc50f26f5afbd899961a344a
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Mar 25 11:10:52 2013 +0100
ActionGroup: Add get/set_accel_group().
* gtk/src/accellable.hg: Wrap the new
gtk_action_group_get_accel_group() and
gtk_action_group_set_accel_group() functions and
add the accel-group property.
ChangeLog | 11 ++++++++++-
gtk/src/actiongroup.hg | 7 +++++++
2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1ac464f..ab12657 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,13 @@
-2013-03-07 Murray Cumming <murrayc murrayc com>
+2013-03-25 Murray Cumming <murrayc murrayc com>
+
+ ActionGroup: Add get/set_accel_group().
+
+ * gtk/src/accellable.hg: Wrap the new
+ gtk_action_group_get_accel_group() and
+ gtk_action_group_set_accel_group() functions and
+ add the accel-group property.
+
+2013-03-25 Murray Cumming <murrayc murrayc com>
AccelLabel: Add set_accel().
diff --git a/gtk/src/actiongroup.hg b/gtk/src/actiongroup.hg
index 9babae4..1aa191e 100644
--- a/gtk/src/actiongroup.hg
+++ b/gtk/src/actiongroup.hg
@@ -20,6 +20,7 @@
#include <gtkmm/widget.h>
#include <gtkmm/action.h>
#include <gtkmm/accelkey.h>
+#include <gtkmm/accelgroup.h>
_DEFS(gtkmm,gtk)
_PINCLUDE(glibmm/private/object_p.h)
@@ -47,6 +48,11 @@ public:
_WRAP_METHOD(void set_sensitive(bool sensitive = true), gtk_action_group_set_sensitive)
_WRAP_METHOD(bool get_visible() const, gtk_action_group_get_visible)
_WRAP_METHOD(void set_visible(bool visible = true), gtk_action_group_set_visible)
+
+ _WRAP_METHOD(Glib::RefPtr<AccelGroup> get_accel_group(), gtk_action_group_get_accel_group, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<const AccelGroup> get_accel_group() const, gtk_action_group_get_accel_group,
refreturn, constversion)
+
+ _WRAP_METHOD(void set_accel_group (const Glib::RefPtr<AccelGroup>& accel_group),
gtk_action_group_set_accel_group)
_WRAP_METHOD(Glib::RefPtr<Action> get_action(const Glib::ustring& action_name),
gtk_action_group_get_action, refreturn)
_WRAP_METHOD(Glib::RefPtr<const Action> get_action(const Glib::ustring& action_name) const,
gtk_action_group_get_action, refreturn, constversion)
@@ -91,6 +97,7 @@ public:
_WRAP_PROPERTY("name", Glib::ustring)
_WRAP_PROPERTY("sensitive", bool)
_WRAP_PROPERTY("visible", bool)
+ _WRAP_PROPERTY("accel-group", Glib::RefPtr<AccelGroup>)
};
} // namespace Gtk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]