[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Designing objects with GObject
- From: David Nečas (Yeti) <yeti physics muni cz>
- To: gtk-app-devel-list gnome org
- Subject: Re: Designing objects with GObject
- Date: Thu, 28 Jun 2007 15:10:41 +0200
On Thu, Jun 28, 2007 at 01:54:29PM +0200, Tomasz Jankowski wrote:
> I have such situation. I have two objects A and B and interface C, which
> should be implemented by both of them. The problem is that some of
> properties of interface C should be writable and readable in object A and
> only readable in object B. Is there any way to keep them in interface C and
> don't do any ugly tricks to go around GObject rules? I really don't want to
> implement separately for both objects.
You will use g_object_class_override_property() anyway.
Doesn't it allow to make a READABLE proeprty READWRITE?
Yeti
--
http://gwyddion.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]