Re: libseed-list Call a Vala Function from Javascript
- From: Andrew <rugby471 gmail com>
- To: Alexandre Mazari <scaroo gmail com>
- Cc: libseed-list gnome org
- Subject: Re: libseed-list Call a Vala Function from Javascript
- Date: Fri, 20 May 2011 10:45:47 +0100
On 20/05/11 10:40, Alexandre Mazari wrote:
> Well, Seed sits on top of JavaScriptCore and provides thin wrappers
> around the previously mentionned methods.
> The real added value of Seed is its facilities to expose
> gobject-introspection symbols (class, enum, namespaces...) within a js
> context.
>
> In your simple use-case of exposing a native function, you might prefer
> depending on JavascriptCore/webkit-gtk only. The methods names look
> alien in GObject word but the API stability is fully guaranted.
>
> If later, you intent to expose classes, instances... You might want to
> use seed.
>
> You could replace:
> JSObjectMakeFunctionWithCallback by seed_make_function
> JSObjectSetProperty by seed_object_set_property
Okay that sounds good. I won't be doing anything more complex (I
believe) so I will just start with JavascriptCore.
Again thanks for your help, you explained everything very well :)
--
Andrew
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]