[glibmm] Glib::Binding: Fix return type from dup_source() and dup_target()



commit 692fcb6903d6ce9a2b028dcd759314a094df7c8d
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Tue Oct 5 15:11:14 2021 +0200

    Glib::Binding: Fix return type from dup_source() and dup_target()
    
    Change from Glib::RefPtr<Glib::Object> to Glib::RefPtr<Glib::ObjectBase>.

 glib/src/binding.hg | 10 +++++-----
 1 file 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")


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