GNOME Bugzilla – Bug 688128
Special case GValues in signals and properties
Last modified: 2017-04-13 00:50:37 UTC
An old patch I had lying around. I don't remember what it was needed for.
Created attachment 228739 [details] [review] Special case GValues in signals and properties If gjs is handling a GValue that itself holds a GValue, such as a signal argument or a property, it should marshal the JS value into a GValue and then set it as a boxed type, as otherwise there is no way to build a JS boxed wrapping a GValue.
Review ping!
Created attachment 349210 [details] [review] tests: Add marshalling tests for GValue-valued properties This is to test GJS's support of GValues boxed inside GValues.
Created attachment 349211 [details] [review] value: Special case GValues in signals and properties If gjs is handling a GValue that itself holds a GValue, such as a signal argument or a property, it should marshal the JS value into a GValue and then set it as a boxed type, as otherwise there is no way to build a JS boxed wrapping a GValue. (Original patch by Giovanni Campagna, reverse path and tests added later by Philip Chimento)
Created attachment 349212 [details] [review] tests: Various GValue test fixes Consolidate the GValue tests in testEverythingBasic, and fix the name of an enum constant in testGIMarshalling (though that test still must be skipped.)
Rebased, with a test.
Review of attachment 349210 [details] [review]: Looks good to me.
Review of attachment 349211 [details] [review]: Looks good.
Review of attachment 349212 [details] [review]: Sure
Comment on attachment 349210 [details] [review] tests: Add marshalling tests for GValue-valued properties Attachment 349210 [details] pushed as 32d130f - tests: Add marshalling tests for GValue-valued properties
Comment on attachment 349212 [details] [review] tests: Various GValue test fixes Attachment 349212 [details] pushed as 50651d0 - tests: Various GValue test fixes
Seems better to commit the last patch after the test is in a point release of gobject-introspection. I should probably be more conscientious about that.
Attachment 349211 [details] pushed as 6bebc3a - value: Special case GValues in signals and properties