[Gtk-sharp-list] The .Label property of controls like the Gtk.Button

Philip Van Hoof spamfrommailing@freax.org
Wed, 29 Oct 2003 16:48:20 +0100


My opinion on the issue, is rather different:

Button.Label should return a Gtk.Label and Button.Text should return a
string

But I assume that most people would dislike it that way (and it would
probably mean significant changes to both the API and the generator). But it
would, imho, make more sense than Gtk.Button.Label => string

Maybe a new namespace with classes that wrap the Gtk-Sharp classes and that
modifies such behaviour is in that case a better solution? But then again,
/mcs/class/System.Windows.Forms/Gtk/ is also such a wrapper (only a bit more
complex).


--
Philip Van Hoof, Software Developer at Cronos
home: me at freax dot be
work: Philip dot VanHoof at Cronos dot Be
http://www.freax.be, http://www.freax.eu.org

> -----Original Message-----
> From: gtk-sharp-list-admin@lists.ximian.com
> [mailto:gtk-sharp-list-admin@lists.ximian.com] On Behalf Of
> Malte Hildingson
> Sent: Wednesday, October 29, 2003 1:58 PM
> To: Philip Van Hoof
> Cc: gtk-sharp-list@lists.ximian.com
> Subject: Re: [Gtk-sharp-list] The .Label property of controls
> like the Gtk.Button


> For what it's worth; IMHO, it is a bad idea to divert from
> the original
> API, Gtk# is a binding to Gtk+ not its own living entity, and
> especially
> changing things like commonly known names will only cause confusion.
>