Bug 35200

Summary: [gtk] Improve g-i annotations
Product: WebKit Reporter: Diego Escalante Urrelo <diegoe>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   

Diego Escalante Urrelo
Reported 2010-02-20 15:17:08 PST
Currently our .gir/.typelib files for gobject-introspection are generated from the .h files. While this works ok it has some problems like lack of ownership specification so for example getting the data source of a frame transfers the full ownership to the caller when that's not true in usual usage. This leds to crashes when -for example- seed frees this wrongly "fully owned" return values. The solution would be to add proper annotations to our gtk-doc comments in .cpp files, however this does not solve the whole thing because g-ir-scanner can't read cpp files according to Colin Walters. We are stuck until they make a cpp parser for g-ir-scanner. Anyway, the bug is still there on our side but the solution to it is useless unless g-i-s is fixed.
Attachments
Xan Lopez
Comment 1 2010-10-15 04:31:20 PDT
g-i now reads cpp files, and I added annotations everywhere, so closing this bug.
Note You need to log in before you can comment on or make changes to this bug.