[glibmm] SimpleAction: Fix stateful action constructor typo, allowing use.



commit 381ef1e3b617ee3011d5bd41662333437f13768b
Author: Andrew Potter <agpotter gmail com>
Date:   Thu Dec 13 19:33:16 2012 +0100

    SimpleAction: Fix stateful action constructor typo, allowing use.
    
    * gio/src/simpleaction.hg: Fix 'sate' typo to 'state', allowing
    the constructor to be used. Bug #690122.

 ChangeLog               |    7 +++++++
 gio/src/simpleaction.hg |    4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7860a8e..0ef9101 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-12-13  Andrew Potter  <agpotter gmail com>
+
+	SimpleAction: Fix stateful action constructor typo, allowing use.
+
+	* gio/src/simpleaction.hg: Fix 'sate' typo to 'state', allowing
+	the constructor to be used. Bug #690122.
+
 2012-12-12  Andrew Potter  <agpotter gmail com>
 
 	Threads: Add create(slot, name).
diff --git a/gio/src/simpleaction.hg b/gio/src/simpleaction.hg
index 6432b39..3fbbdf1 100644
--- a/gio/src/simpleaction.hg
+++ b/gio/src/simpleaction.hg
@@ -50,7 +50,7 @@ protected:
 #m4 _CONVERSION(`const Glib::VariantType&',`const GVariantType*',`$3.gobj()')
   _WRAP_CTOR(SimpleAction(const Glib::ustring& name, const Glib::VariantType& parameter_type), g_simple_action_new)
 
-  _WRAP_CTOR(SimpleAction(const Glib::ustring& name, const Glib::VariantType& parameter_type, const Glib::VariantBase& sate), g_simple_action_new_stateful)
+  _WRAP_CTOR(SimpleAction(const Glib::ustring& name, const Glib::VariantType& parameter_type, const Glib::VariantBase& state), g_simple_action_new_stateful)
 
 public:
 
@@ -60,7 +60,7 @@ public:
   _WRAP_CREATE(const Glib::ustring& name, const Glib::VariantType& parameter_type)
 
   _WRAP_METHOD_DOCS_ONLY(g_simple_action_new_stateful)
-  _WRAP_CREATE(const Glib::ustring& name, const Glib::VariantType& parameter_type, const Glib::VariantBase& sate)
+  _WRAP_CREATE(const Glib::ustring& name, const Glib::VariantType& parameter_type, const Glib::VariantBase& state)
 
   _WRAP_METHOD(void set_enabled(bool enabled), g_simple_action_set_enabled)
   _WRAP_METHOD(void set_state(const Glib::VariantBase& value), g_simple_action_set_state)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]