Hey,<br><br>On Sex, 27 Jun, 2014 at 3:34 , Carlos Garcia Campos <cgarcia@igalia.com> wrote:<br><blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;"><blockquote> [ 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. ]
</blockquote>
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.</div></blockquote><div><br></div><div>hmm, there is a JavaScriptCore GIR file which has:</div><div><br></div><div> <record name="GlobalContext" c:type="JSGlobalContextRef" foreign="1"/></div><div> <record name="Value" c:type="JSValueRef" foreign="1"/></div><div><br></div><div>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.</div><div><br></div><div>Cheers,</div><div><br></div><div>Gustavo</div>