Re: Finding JavaScript symbols from GObject Introspection bindings



hi;

GDK_SELECTION_CLIPBOARD is not available in the introspection data
because it's a macro that evaluates to a complex expression, and
cannot be parsed by the introspection scanner.

we are going to add simple wrappers for gtk_clipboard_get() in GTK+
3.14, and those will be introspectable correctly. in theory, you could
use `Gdk.atom_intern('CLIPBOARD', true)`, but in practice the GdkAtom
type is also not introspectable because it's an opaque pointer.

as for the documentation: we are in the process of generating all API
references for all bindings based on introspection using the
introspection data. we recently had a hackfest in Berlin on this very
topic (amongst others) so you should be able to expect results and
announcements soon.

ciao,
 Emmanuele.


On 5 May 2014 07:44, Jon Kristensen <info jonkri com> wrote:
Hello, everyone!

I have one specific question, and one question of a more general nature.

First, what are the JavaScript symbols I can use for selection in
<https://developer.gnome.org/gtk3/3.12/gtk3-Clipboards.html#gtk-clipboard-get>? I'm using GJS and is trying 
to find the equivalent of GDK_SELECTION_CLIPBOARD.

On a more general level, I would like to know how I can go about finding
out the names of these binding symbols generally. Is there perhaps some
way that I can inspect the GI files? Is there some documentation laying
around somewhere that I have failed to find?

If not, is there a way that we could produce such an API documentation
(perhaps annotated with the names of the functions in the underlying
language), so that people unfamiliar with the bindings could find what
they are looking for more easily?

Thanks!

Warm regards,

--
Jon Kristensen
0730 - 862 982
http://www.jonkri.com/

_______________________________________________
javascript-list mailing list
javascript-list gnome org
https://mail.gnome.org/mailman/listinfo/javascript-list




-- 
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]