Make it easier to override properties
Submitted by Christoph Reiter
If there already is something like this, please close.
Came up in IRC.. for example implementing Gtk.Scrollable can be implemented like this, I think:
while it seems to me it could be as easy as this (using g_object_class_override_property?):
class Foo(GObject.Object, Gtk.Scrollable):
def __init__(self, **kwargs): super(Foo, self).__init__(**kwargs) self._hscroll = Gtk.Scrollable.props.hscroll_policy.default_value @Gtk.Scrollable.props.hscroll_policy def hscroll_policy(self): return self._hscroll @hscroll_policy.setter def hscroll_policy(self, value): self._hscroll = value