Re: Can't add new GTK 2.16 methods to GtkStyle



Kevin Ryde wrote:
There might be a lot of code out there relying
on get_property() being Glib::Object::get_property().  I still think
that's broken, since there's no guarantee that subclasses avoid naming
methods "get_property".

Oh, well, you hope as a "social" matter when a subclass overrides it
does so in a kinda compatible way, so things you could do on the
superclass still have, mostly, the same result.  There must be some oop
jargon for degrees of extending, narrowing, or whatnot of subclass
method semantics must there?

For jargon, there's the Liskov substitutability: <http://en.wikipedia.org/wiki/Liskov_substitution_principle>.

â Make Gtk2::Style::get() call gtk_style_get(), but leave
get_property() alone. This has a precedent in Gtk2::TreeModel.

That's the one I like the sound of.

OK, I removed the get_property() alias for Gtk2::Style::get().



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