[GUI] Setting properties of a widget.

Axel Simon A.Simon@ukc.ac.uk
Tue, 1 Apr 2003 09:56:10 +0100


On Tue, Apr 01, 2003 at 01:22:45AM +0100, Glynn Clements wrote:
> 
> Axel Simon wrote:
> 
> > > > d) setting a property and getting a result
> > > 
> > > This would be most useful for setting callbacks and
> > > returning the removeHandler.  Is there any other place
> > > where this would be useful?  Perhaps this is a special
> > > case?
> > 
> >  Might be. But callbacks are very important and there will be plenty of 
> > them. So it would be nice to have the same infrastructure for them as for 
> > the other attributes.
> 
> I don't think that it makes sense to treat callbacks as attributes. 
> The underlying UI toolkits don't generally take this approach.

Gtk treats them as attributes. But I take your point. Callbacks would 
otherwise be the only "attributes" which return something when they are 
set.

So I'd vote for this.

Axel.