[glibmm] SimpleAction: Add create() methods.



commit 1d82282f18fb23dc25fe9cc5657ed16aeff11481
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date:   Wed Sep 21 23:14:09 2011 -0400

    SimpleAction: Add create() methods.
    
    	* gio/src/simpleaction.hg: Add two forgotten create methods for the
    	class.  Also filed bug #659783 about not being able to wrap the
    	signals.

 ChangeLog               |    8 ++++++++
 gio/src/simpleaction.hg |    8 ++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 30aac09..5245338 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-09-21  Josà Alburquerque  <jaalburqu svn gnome org>
 
+	SimpleAction: Add create() methods.
+
+	* gio/src/simpleaction.hg: Add two forgotten create methods for the
+	class.  Also filed bug #659783 about not being able to wrap the
+	signals.
+
+2011-09-21  Josà Alburquerque  <jaalburqu svn gnome org>
+
 	giomm: Add SimpleAction, an implementation of the Action interface.
 
 	* gio/src/simpleaction.{ccg,hg}:
diff --git a/gio/src/simpleaction.hg b/gio/src/simpleaction.hg
index a67c524..08bdc58 100644
--- a/gio/src/simpleaction.hg
+++ b/gio/src/simpleaction.hg
@@ -50,6 +50,12 @@ protected:
   _WRAP_CTOR(SimpleAction(const Glib::ustring& name, const Glib::VariantType& parameter_type, const Glib::VariantBase& sate), g_simple_action_new_stateful)
 
 public:
+  _WRAP_METHOD_DOCS_ONLY(g_simple_action_new)
+  _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_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)
 
@@ -63,6 +69,8 @@ public:
 
 /* TODO: Signals are not wrapped because GSimpleAction does not declare a
  * standard _GSimpleActionClass structure.
+ * See bug #659783:
+ * https://bugzilla.gnome.org/show_bug.cgi?id=659783
 #m4 _CONVERSION(`GVariant*',`const Glib::VariantBase&',`Glib::wrap($3, true)')
 
   _WRAP_SIGNAL(void activate(const Glib::VariantBase& parameter), "activate")



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