[glibmm] Gio::SimpleAction: Make set_state() protected.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Gio::SimpleAction: Make set_state() protected.
- Date: Fri, 9 Aug 2013 10:16:41 +0000 (UTC)
commit b7431bca6ccbd9f918b5ef73bae65a1c7828e7e0
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Aug 9 11:57:17 2013 +0200
Gio::SimpleAction: Make set_state() protected.
gio/src/simpleaction.hg | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gio/src/simpleaction.hg b/gio/src/simpleaction.hg
index 202f2e6..30f7ad9 100644
--- a/gio/src/simpleaction.hg
+++ b/gio/src/simpleaction.hg
@@ -126,9 +126,6 @@ public:
_WRAP_METHOD(void set_enabled(bool enabled = true), g_simple_action_set_enabled)
- //TODO: Add templated version of this, renaming this to set_state_variant(), like Action::change_state()?
- _WRAP_METHOD(void set_state(const Glib::VariantBase& value), g_simple_action_set_state)
-
_WRAP_PROPERTY("enabled", bool)
_WRAP_PROPERTY("name", Glib::ustring)
_WRAP_PROPERTY("parameter-type", Glib::VariantType)
@@ -139,6 +136,13 @@ public:
_WRAP_SIGNAL(void activate(const Glib::VariantBase& parameter), "activate", no_default_handler)
_WRAP_SIGNAL(void change_state(const Glib::VariantBase& value), "change-state", no_default_handler)
+
+protected:
+
+ //TODO: Add templated version of this, renaming this to set_state_variant(), like Action::change_state()?
+ //This is protected because the C docs say "This should only be called by the implementor of the action."
+ // though that is not entirely clear. We can make this public if somebody needs it.
+ _WRAP_METHOD(void set_state(const Glib::VariantBase& value), g_simple_action_set_state)
};
} // namespace Gio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]