Hey,

On Sex, 27 Jun, 2014 at 3:34 , Carlos Garcia Campos <[email protected]> wrote:
[ for webkit-gtk@: Federico is porting his app from python-webkit (the old static libwebkitgtk-1.0 python bindings) to gir1.2-webkit2-3.0, see the code
 below. ]

Yes, the problem is that webkit_javascript_result_get_value() returns a JSValueRef, but there's no gobject-introspection for JavaScriptCore API.
I don't think it worked in WebKit1 either, but in WebKit1
webkit_web_view_run_script didn't return anything, so if you are porting from WebKit1, maybe you can just ignore the return value for now. I have
some comments about the code, see below.

hmm, there is a JavaScriptCore GIR file which has:

<record name="GlobalContext" c:type="JSGlobalContextRef" foreign="1"/>
   <record name="Value" c:type="JSValueRef" foreign="1"/>

That is not sufficient from what you're saying? In Debian the gir file is on the jsc dev package and the typelib in gir1.2-javascriptcoregtk-1.0.

Cheers,

Gustavo
_______________________________________________
webkit-gtk mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-gtk

Reply via email to