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 585927 - default SET_PROPERTY do set magic
default SET_PROPERTY do set magic
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: 2009-06-16 00:06 UTC by Kevin Ryde
Modified: 2009-07-19 11:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
SET_PROPERTY magic, change and test case (1.79 KB, patch)
2009-06-16 00:07 UTC, Kevin Ryde
committed Details | Review

Description Kevin Ryde 2009-06-16 00:06:47 UTC
In the current cvs, the default SET_PROPERTY method for a Glib::Object subclass doesn't call a tie on the hash entry it stores to.  Failing test case and possible fix below.

I struck this when experimenting with a tie to get a 'notify' signal emitted if an object field value becomes undef due to weakening.  A SET_PROPERTY written in perl storing to the hash entry reaches the tie, but the C code doesn't.
Comment 1 Kevin Ryde 2009-06-16 00:07:44 UTC
Created attachment 136679 [details] [review]
SET_PROPERTY magic, change and test case
Comment 2 Torsten Schoenfeld 2009-07-19 11:21:06 UTC
Looks great to me.  Committed: <http://git.gnome.org/cgit/perl-Glib/commit/?id=c6d5841fd>.