summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2021-10-05 15:11:14 +0200
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2021-10-05 15:11:14 +0200
commit692fcb6903d6ce9a2b028dcd759314a094df7c8d (patch)
treed690732480aa81af714412e4abd77586b4efd9a4
parenta4dba878ffa79c044b16eeb9172fcdc8818925f4 (diff)
downloadglibmm-692fcb6903d6ce9a2b028dcd759314a094df7c8d.tar.gz
Glib::Binding: Fix return type from dup_source() and dup_target()
Change from Glib::RefPtr<Glib::Object> to Glib::RefPtr<Glib::ObjectBase>.
-rw-r--r--glib/src/binding.hg10
1 files changed, 5 insertions, 5 deletions
diff --git a/glib/src/binding.hg b/glib/src/binding.hg
index 54af2d0c..7cf03e73 100644
--- a/glib/src/binding.hg
+++ b/glib/src/binding.hg
@@ -382,7 +382,7 @@ public:
slot_transform_from.empty() ? SlotTransform() : TransformProp<T_target, T_source>(slot_transform_from));
}
- #m4 _CONVERSION(`GObject*',`Glib::ObjectBase*',`Glib::wrap_auto($3)')
+#m4 _CONVERSION(`GObject*',`Glib::ObjectBase*',`Glib::wrap_auto($3)')
_WRAP_METHOD(Glib::ObjectBase* get_source(), g_binding_get_source,
newin "2,44", deprecated "Use dup_source() instead.")
_WRAP_METHOD(const Glib::ObjectBase* get_source() const, g_binding_get_source,
@@ -392,8 +392,8 @@ public:
// The object may be an interface object, e.g. Gio::Action. Such an object can't be
// cast to Glib::Object. https://gitlab.gnome.org/GNOME/glibmm/-/issues/93
#m4 _CONVERSION(`GObject*',`Glib::RefPtr<Glib::ObjectBase>',`Glib::make_refptr_for_instance<Glib::ObjectBase>(Glib::wrap_auto($3))')
- _WRAP_METHOD(Glib::RefPtr<Glib::Object> dup_source(), g_binding_dup_source, newin "2,70")
- _WRAP_METHOD(Glib::RefPtr<const Glib::Object> dup_source() const, g_binding_dup_source,
+ _WRAP_METHOD(Glib::RefPtr<Glib::ObjectBase> dup_source(), g_binding_dup_source, newin "2,70")
+ _WRAP_METHOD(Glib::RefPtr<const Glib::ObjectBase> dup_source() const, g_binding_dup_source,
constversion, newin "2,70")
_WRAP_METHOD(Glib::ustring get_source_property() const, g_binding_get_source_property, newin "2,44")
@@ -403,8 +403,8 @@ public:
_WRAP_METHOD(const Glib::ObjectBase* get_target() const, g_binding_get_target,
constversion, newin "2,44", deprecated "Use dup_target() instead.")
- _WRAP_METHOD(Glib::RefPtr<Glib::Object> dup_target(), g_binding_dup_target, newin "2,70")
- _WRAP_METHOD(Glib::RefPtr<const Glib::Object> dup_target() const, g_binding_dup_target,
+ _WRAP_METHOD(Glib::RefPtr<Glib::ObjectBase> dup_target(), g_binding_dup_target, newin "2,70")
+ _WRAP_METHOD(Glib::RefPtr<const Glib::ObjectBase> dup_target() const, g_binding_dup_target,
constversion, newin "2,70")
_WRAP_METHOD(Glib::ustring get_target_property() const, g_binding_get_target_property, newin "2,44")