[Glade-devel] widgets with the same name in the same file?



Il giorno name="incorrect" class="incorrect">gio 17 set 2009 18:34:32  
name="incorrect" class="incorrect">CEST, Timo ha scritto:
name="incorrect" class="incorrect">It name="incorrect"  
class="incorrect">is name="incorrect" class="incorrect">possible.  
name="incorrect" class="incorrect">When name="incorrect"  
class="incorrect">you start name="incorrect" class="incorrect">Glade  
(or name="incorrect" class="incorrect">Edit=>name="incorrect"  
class="incorrect">Preferences), name="incorrect"  
class="incorrect">choose in
name="incorrect" class="incorrect">the name="incorrect"  
class="incorrect">preferences name="incorrect"  
class="incorrect">dialog name="incorrect" class="incorrect">for:
name="incorrect" class="incorrect">Object name="incorrect"  
class="incorrect">names are name="incorrect"  
class="incorrect">unique: name="incorrect" class="incorrect">inside  
name="incorrect" class="incorrect">toplevels

name="incorrect" class="incorrect">Instead name="incorrect"  
class="incorrect">of "name="incorrect" class="incorrect">Within  
name="incorrect" class="incorrect">the name="incorrect"  
class="incorrect">project".

name="incorrect" class="incorrect">but in name="incorrect"  
class="incorrect">this case name="incorrect" class="incorrect">is  
name="incorrect" class="incorrect">it possibile name="incorrect"  
class="incorrect">to name="incorrect" class="incorrect">load,  
name="incorrect" class="incorrect">with name="incorrect"  
class="incorrect">gtkbuilder, name="incorrect" class="incorrect">for  
name="incorrect" class="incorrect">example name="incorrect"  
class="incorrect">two name="incorrect" class="incorrect">windows  
name="incorrect" class="incorrect">with name="incorrect"  
class="incorrect">inside a name="incorrect" class="incorrect">button  
name="incorrect" class="incorrect">with name="incorrect"  
class="incorrect">the name="incorrect" class="incorrect">same name?  
and, when i use gtk_builder_get_object whichever name="incorrect"  
class="incorrect">button name="incorrect" class="incorrect">gtkbuilder  
returns?




Roland Koebler schreef:
Hi,

in name="incorrect" class="incorrect">Glade v3 name="incorrect"  
class="incorrect">it seems name="incorrect" class="incorrect">to be  
impossible name="incorrect" class="incorrect">to give  
name="incorrect" class="incorrect">two widgets name="incorrect"  
class="incorrect">the name="incorrect" class="incorrect">same
name, which was name="incorrect" class="incorrect">possible in  
name="incorrect" class="incorrect">Glade v2. Although  
name="incorrect" class="incorrect">it may sound strange
at first, name="incorrect" class="incorrect">it definitely  
name="incorrect" class="incorrect">is useful name="incorrect"  
class="incorrect">to have name="incorrect" class="incorrect">two  
widgets name="incorrect" class="incorrect">with name="incorrect"  
class="incorrect">the name="incorrect" class="incorrect">same
name in one file, e.g. name="incorrect" class="incorrect">for  
having several name="incorrect" class="incorrect">windows in 1  
glade-file,
where each window has a "close_button" or a "number_entry".
I used name="incorrect" class="incorrect">this a lot  
name="incorrect" class="incorrect">with name="incorrect"  
class="incorrect">Glade v2.

So, could name="incorrect" class="incorrect">you again (like in  
name="incorrect" class="incorrect">Glade v2) allow several widgets  
name="incorrect" class="incorrect">with name="incorrect"  
class="incorrect">the
name="incorrect" class="incorrect">same name in one file?

(The alternative name="incorrect" class="incorrect">for  
name="incorrect" class="incorrect">the name="incorrect"  
class="incorrect">example above would either be much longer widget-
name="incorrect" class="incorrect">names (plus specific code  
name="incorrect" class="incorrect">for every window, since generic  
code may not work)
or a whole bunch name="incorrect" class="incorrect">of  
glade-files---which both seems clumsy.)





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