[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Designing objects with GObject
- From: Tristan Van Berkom <tvb gnome org>
- To: Tomasz Jankowski <tomcioj gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Designing objects with GObject
- Date: Fri, 29 Jun 2007 12:25:38 -0400
On Fri, 2007-06-29 at 13:40 +0200, Tomasz Jankowski wrote:
> > You can do this, as you control set_property(). The problem
> > is that this is a hack invisible to inspection, therefore it
> > can lead to all sorts of odd behaviour.
>
>
> So it's exactly as I thought. I'll implement those properties separately for
> both objects. I don't want to make any surprises to my code.
>
I remember being told this in #gtk+ irc in the last month;
If you want to override the default value or read/write flags
on a property you can simply re-install it in the subclass.
Basically, your implementing class can g_object_class_install_property
and if its the same name it will replace whatever properties were
installed by parent classes or interfaces.
Cheers,
-Tristan
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]