After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 634350 - Object properties pspec/get/set form vs subclass
Object properties pspec/get/set form vs subclass
Status: RESOLVED FIXED
Product: gnome-perl
Classification: Bindings
Component: Glib
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk2-perl-bugs
gtk2-perl-bugs
Depends on:
Blocks:
 
 
Reported: 2010-11-08 19:13 UTC by Kevin Ryde
Modified: 2010-11-27 15:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch and test cases (5.58 KB, patch)
2010-11-08 19:13 UTC, Kevin Ryde
committed Details | Review

Description Kevin Ryde 2010-11-08 19:13:53 UTC
Created attachment 174088 [details] [review]
patch and test cases

If a class adds a property with

    properties => [ { pspec=>, get=>, set=> } ]

then those get/set funcs are not called from a further subclass of that class.

I think the lookup for those get/set funcs should be on the pspec->owner_type, not the instance type.  The instance type is the subclass, whereas the owner type is one which defined the property and where the get/set are stored -- per attachment.
Comment 1 Torsten Schoenfeld 2010-11-27 15:42:44 UTC
Oh, good catch!  Thanks.