GNOME Bugzilla – Bug 585927
default SET_PROPERTY do set magic
Last modified: 2009-07-19 11:21:06 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.
Created attachment 136679 [details] [review] SET_PROPERTY magic, change and test case
Looks great to me. Committed: <http://git.gnome.org/cgit/perl-Glib/commit/?id=c6d5841fd>.