Bug 48135 - [GTK] GObject bindings generator issues
Summary: [GTK] GObject bindings generator issues
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P3 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-22 09:36 PDT by Sergio Villar Senin
Modified: 2010-10-28 23:33 PDT (History)
3 users (show)

See Also:


Attachments
Fixes to the code generator (3.67 KB, patch)
2010-10-22 10:29 PDT, Sergio Villar Senin
no flags Details | Formatted Diff | Diff
Fixes to the GObject code generator (3.68 KB, patch)
2010-10-25 03:19 PDT, Sergio Villar Senin
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio Villar Senin 2010-10-22 09:36:19 PDT
There are a couple of issues in the GObject binding generator:
* webkit_dom_html_input_element_get_files is not included in the conditional methods
* conditional methods that are part of the API should not be conditionally built. Instead, the implementation of those methods must be enclosed by #if ENABLE() clauses
* Conditional methods with return type different than void, whose implementation is not meant to be built, does not currently have a return statement.
Comment 1 Sergio Villar Senin 2010-10-22 10:29:31 PDT
Created attachment 71573 [details]
Fixes to the code generator
Comment 2 Xan Lopez 2010-10-23 03:32:52 PDT
Comment on attachment 71573 [details]
Fixes to the code generator

I'm a bit confused, what's the point of having the two sets of #if in the cbody? Shouldn't you only leave the one inside the function body and get rid of the one outside?
Comment 3 Sergio Villar Senin 2010-10-25 01:13:46 PDT
(In reply to comment #2)
> (From update of attachment 71573 [details])
> I'm a bit confused, what's the point of having the two sets of #if in the cbody? Shouldn't you only leave the one inside the function body and get rid of the one outside?

Yeah right, I just changed the conditionals. I left both because I somehow thought that there could be public methods of those classes that wouldn't be part of WEBKIT_API but it seems that indeed it's not the case.
Comment 4 Sergio Villar Senin 2010-10-25 03:19:47 PDT
Created attachment 71725 [details]
Fixes to the GObject code generator

New version of the patch. Removed the wrapping ifdef's and the conditionalMethods hack
Comment 5 Xan Lopez 2010-10-28 22:41:06 PDT
Comment on attachment 71725 [details]
Fixes to the GObject code generator

Looks good to me.
Comment 6 WebKit Commit Bot 2010-10-28 23:33:10 PDT
Comment on attachment 71725 [details]
Fixes to the GObject code generator

Clearing flags on attachment: 71725

Committed r70844: <http://trac.webkit.org/changeset/70844>
Comment 7 WebKit Commit Bot 2010-10-28 23:33:15 PDT
All reviewed patches have been landed.  Closing bug.