summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2013-08-09 11:57:17 +0200
committerMurray Cumming <murrayc@murrayc.com>2013-08-09 11:57:17 +0200
commitb7431bca6ccbd9f918b5ef73bae65a1c7828e7e0 (patch)
tree4b62e9d0f786aa0b912d6927b9b03c3e2f50c12a
parent621331291a48a9889d819c74987eccf5a620bfe9 (diff)
downloadglibmm-b7431bca6ccbd9f918b5ef73bae65a1c7828e7e0.tar.gz
Gio::SimpleAction: Make set_state() protected.
-rw-r--r--gio/src/simpleaction.hg10
1 files changed, 7 insertions, 3 deletions
diff --git a/gio/src/simpleaction.hg b/gio/src/simpleaction.hg
index 202f2e61..30f7ad96 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