Re: Designing objects with GObject

On Fri, Jun 29, 2007 at 06:39:47PM +0800, Konstantin Evdokimenko wrote:
If you will make properties of interface C writable and readable in object A and
only readable in object B then objects A and B will not implement the
same interface.

The common interface is the read-only property here,
A implements an extension: read-write.

Try ignore writing these properties for object B. But I don't know how
this may be done =(.

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.



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