Re: [Vala] GLib.Menu subclass






 
      From: Chris Daley <chebizarro gmail com>
 To: Ondrej Tuma <konference 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


   
 


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