[Glade-devel] Binding independent names

Paolo Borelli pborelli@katamail.com
Tue, 13 Jan 2004 18:49:32 +0100


On Tue, 2004-01-13 at 16:40, John (J5) Palmieri wrote:
> On Tue, 2004-01-13 at 09:52, bighead@users.sourceforge.net wrote:
> > Hey
> > 
> > I don't quite get what you meant by "preference of changing names for Widgets,
> > depending upon the language binding" ? 
> > 
> > Archit
> 
> I think he is talking about namespaces in C showing up as the widget
> name in Glade.  So the HBox is called GtkHBox but in Python which has
> propper namespacing, the widget is simply called an HBox which is
> contained within the Gtk package.
> 
> I would be opposed to an option to switch this on and off, as it would
> add undue complexity, however I belive that GtkHBox is technicly wrong
> and Glade should just adopt HBox as the name of the widget with Gtk
> being the name of the package. Just a thought.
> 

I'm also contrary to the idea of having this option to switch the name,
not only because I'm darn lazy and I don't like unnecessary code, but
also because glade3 should be language-agnostic and just have a univoc
name for each widget and GtkHBox is the best candidate since it's the
original one. Maybe that kind of renaming can be done in the IDE that
embeds glade3 by subclassing the signal-editor, since the ide knows in
which language the project will be developed.
Note however that I wouldn't suggest it since the UI of the GUI designer
would be changing for each project.

I also don't like the idea of stripping of the Gtk* namespace, since you
could have a loadable library that offers its FooHBox or whatever.
IMHO glade is the _GTK_ gui builder, so calling the Gtk widgets with
their name (GtkHBox etc) is just fine.

ciao
	paolo