[glibmm] Glib::Binding: get_source() and get_target() return ObjectBase*
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Glib::Binding: get_source() and get_target() return ObjectBase*
- Date: Fri, 15 Nov 2019 18:19:03 +0000 (UTC)
commit 65ddb6729a7e4e50d6fa9f79faae3b760994217e
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Fri Nov 15 19:17:01 2019 +0100
Glib::Binding: get_source() and get_target() return ObjectBase*
Fixes #63
glib/src/binding.hg | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/glib/src/binding.hg b/glib/src/binding.hg
index f944dd8d..c6849e17 100644
--- a/glib/src/binding.hg
+++ b/glib/src/binding.hg
@@ -380,11 +380,12 @@ public:
slot_transform_from.empty() ? SlotTransform() : TransformProp<T_target,
T_source>(slot_transform_from));
}
- _WRAP_METHOD(Glib::RefPtr<Glib::ObjectBase> get_source(), g_binding_get_source, refreturn, newin "2,44")
- _WRAP_METHOD(Glib::RefPtr<const Glib::ObjectBase> get_source() const, g_binding_get_source, refreturn,
constversion, newin "2,44")
+#m4 _CONVERSION(`GObject*',`Glib::ObjectBase*',`Glib::wrap_auto($3)')
+ _WRAP_METHOD(Glib::ObjectBase* get_source(), g_binding_get_source, newin "2,44")
+ _WRAP_METHOD(const Glib::ObjectBase* get_source() const, g_binding_get_source, constversion, newin "2,44")
_WRAP_METHOD(Glib::ustring get_source_property() const, g_binding_get_source_property, newin "2,44")
- _WRAP_METHOD(Glib::RefPtr<Glib::ObjectBase> get_target(), g_binding_get_target, refreturn, newin "2,44")
- _WRAP_METHOD(Glib::RefPtr<const Glib::ObjectBase> get_target() const, g_binding_get_target, refreturn,
constversion, newin "2,44")
+ _WRAP_METHOD(Glib::ObjectBase* get_target(), g_binding_get_target, newin "2,44")
+ _WRAP_METHOD(const Glib::ObjectBase* get_target() const, g_binding_get_target, constversion, newin "2,44")
_WRAP_METHOD(Glib::ustring get_target_property() const, g_binding_get_target_property, newin "2,44")
_WRAP_METHOD(Flags get_flags() const, g_binding_get_flags, newin "2,44")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]