[Vala] Inheritance from Gtk.TextTag



Hi,

I don't know how to correctly extend Gtk.TextTag class. I know that
extending a non-vala class i a little bit different.
So the problem is that i want to construct a subclass of Gtk.TextTag
with a name property, but
1. I cannot chain up to the non default constructor
2. I cannot access name property in the subclass, because it it defined
as "public string name { construct; owned get; }", and valac suggest to
chain up to constructor.

I am implementing a HtmlTextEditor in vala for shotwell, and i really
need help. I have emailed the Idea with HtmlTextTag on gtk mailing list:
http://mail.gnome.org/archives/gtk-list/2010-December/msg00028.html

Thanks,
Maciek Rumianowski (rumianom)




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