From: Chris Daley <chebiza...@gmail.com>
To: Ondrej Tuma <konfere...@webjet.cz>
Sent: Wednesday, 29 June 2016, 15:58
Subject: Re: [Vala] GLib.Menu subclass
Indeed, it should have a more meaningful error. Don't forget to file a bug
report!
I have seen this behaviour with some other classes and I suspect it will
become more and more common as GLib/GTK/Clutter move towards preferring
composition over inheritance (and in certain cases enforcing it). Does Vala
need a "final" or "sealed" keyword for Classes?
It appears this patch made GMenu
final:https://mail.gnome.org/archives/commits-list/2011-October/msg03667.htmlby
removing a number of relevant GObject macros.
There does not appear a way to annotate this with GObject Annotations.So this
information could not be extracted from aGIR (GObject Introspection Repository)
file. Unless an annotation is added, then
Vala would have to extract the information from a Vala GIR metadata file.
Vala appears to have support in the parser for
"sealed":https://git.gnome.org/browse/vala/commit/?id=4cccc76af6f0f3421578e234bd643f7138b19e85although
I can't find it being used anywhere in the rest of the source. So it's
probably a no-op at present.
Al
_______________________________________________
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list