On 17.10.2015 22:57, Florian Müllner wrote: > On Sat, Oct 17, 2015 at 10:11 PM, Jay Strict <jay.str...@posteo.de> wrote: >> const XMLConfigParser = new Lang.Class({ >> Name: 'XMLConfigParser', >> Extends: GLib.MarkupParser, > > GMarkupParser is not a GObject, so you cannot inherit from it. In > general, support for anything below GObject is fairly limited - it > works for utility functions, types that are boxed by GObject *and* > provide a contructor-like function, and types that have special > treatment in gjs to expose it to JS. Neither is the case for > GMarkupParser, so you cannot use it from an extension (unless you add > support to gjs first). >
Ok, thank you for the explanation (and sorry for the late reply). I assumed that GMarkupParser is available for gjs as # g-ir-doc-tool -l gjs /usr/share/gir-1.0/GLib-2.0.gir does in fact produce a help file with GMarkupParser described in it. I don't want to be rude, but I must say that the poor documentation of some of the Gnome projects really annoys me. :( Kind regards Jay _______________________________________________ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list