Bug 35200 - [gtk] Improve g-i annotations
Summary: [gtk] Improve g-i annotations
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-20 15:17 PST by Diego Escalante Urrelo
Modified: 2010-10-15 04:31 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Escalante Urrelo 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.
Comment 1 Xan Lopez 2010-10-15 04:31:20 PDT
g-i now reads cpp files, and I added annotations everywhere, so closing this bug.