GNOME Bugzilla – Bug 561664
Closure support is broken
Last modified: 2008-12-09 15:30:18 UTC
Passing GClosure arguments to function is broken, it gives errors of the kind: "Object 0x90d8780 proto 0x90c2000 doesn't have a dynamically-registered class, it has Function"
Created attachment 123101 [details] Failing test case
Created attachment 123103 [details] [review] fix broken closure as argument
Created attachment 123104 [details] [review] Avoid leaking the BigJsClosure
Created attachment 123105 [details] [review] Make the GArg own the BigJsClosure
Created attachment 123110 [details] [review] Fix returning a GValue Returning a GValue was also broken (it was handled as a struct)
Looks good.
(In reply to comment #5) > Created an attachment (id=123110) [edit] > Fix returning a GValue > > Returning a GValue was also broken (it was handled as a struct) > Can you include at test for this?
Created attachment 123599 [details] test for the GValue case
(In reply to comment #8) > Created an attachment (id=123599) [edit] > test for the GValue case I'm guessing those test cases fail without your patches, right? Looks good.
Yes(In reply to comment #9) > (In reply to comment #8) > > Created an attachment (id=123599) [edit] > > test for the GValue case > > I'm guessing those test cases fail without your patches, right? > > Looks good. > Yes The test cases depend on http://bugzilla.gnome.org/show_bug.cgi?id=562545
This broke again in r131. We really need the test case
Created attachment 124278 [details] [review] same patch again :)
committed, together with the test case