Re: Some introspection on GtkContainer children.



On Fri, 2005-09-16 at 11:02 +0100, Damon Chaplin wrote:

> But what you should aim for is to be able to handle external widget
> libraries generically (e.g. there is very little special-case code to
> handle the GnomeDB widgets in glade-2).

  Indeed.

> 
> You can then write up a guide for widget developers who want to be
> compatable with GUI builders - e.g. use widget properties to configure
> everything, don't use construct-only properties,

>  avoid composite
> children unless absolutely necessary (and even then only use simple
> ones).

  I don't agree it's fair to limit developers' options on code reuse
just for the sake of GUI builders.  I'd rather pack an hbox into my
widget than duplicate its layout algorithm, for example.

  The composite children should be just invisible from the point of view
of a GUI builder.  They should not appear in a .glade file at all.

  Regards.

-- 
Gustavo J. A. M. Carneiro
<gjc inescporto pt> <gustavo users sourceforge net>
The universe is always one step beyond logic.




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