[glibmm] SimpleAction: Wrap the signals and properties.
- From: Josà Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] SimpleAction: Wrap the signals and properties.
- Date: Mon, 10 Oct 2011 20:04:25 +0000 (UTC)
commit 855c28ddfe5f3cc3376442d954434cef2d49cb84
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date: Mon Oct 10 15:58:12 2011 -0400
SimpleAction: Wrap the signals and properties.
* gio/src/simpleaction.hg: Wrap the signals using the
no_default_handler option because there are no signal members exposed
in the GSimpleActionClass struct (in fact, there is no
GSimpleActionClass struct). Also wrap the properties.
ChangeLog | 9 +++++++++
gio/src/simpleaction.hg | 11 ++---------
2 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8401bf2..b1ee3c2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2011-10-10 Josà Alburquerque <jaalburqu svn gnome org>
+ SimpleAction: Wrap the signals and properties.
+
+ * gio/src/simpleaction.hg: Wrap the signals using the
+ no_default_handler option because there are no signal members exposed
+ in the GSimpleActionClass struct (in fact, there is no
+ GSimpleActionClass struct). Also wrap the properties.
+
+2011-10-10 Josà Alburquerque <jaalburqu svn gnome org>
+
Application, {,Simple}Action{,Group}: Update @newins{}'s.
* gio/src/action.hg:
diff --git a/gio/src/simpleaction.hg b/gio/src/simpleaction.hg
index 4172ebd..dfc668f 100644
--- a/gio/src/simpleaction.hg
+++ b/gio/src/simpleaction.hg
@@ -60,23 +60,16 @@ public:
_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)
- /* These properties are already wrapped in the Action interface.
_WRAP_PROPERTY("enabled", bool)
_WRAP_PROPERTY("name", Glib::ustring)
_WRAP_PROPERTY("parameter-type", Glib::VariantType)
_WRAP_PROPERTY("state", Glib::VariantBase)
_WRAP_PROPERTY("state-type", Glib::VariantType)
- */
-/* 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")
- _WRAP_SIGNAL(void change_state(const Glib::VariantBase& value), "change-state")
-*/
+ _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)
};
} // namespace Gio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]