[Glade-users] Widget namespaces

Daniel Kasak dkasak at nusconsulting.com.au
Sun Feb 18 17:24:43 EST 2007


Tomek Lorek wrote:

> Hi there,
> Is there any possibility to get something like namespaces? In one
> project I have several windows, each contains an "Ok" and "Cancel"
> buttons. Those names are bOk and bCancel. The problem is that when I
> call:
> refXml->get_widget("bOk", m_bOk);
> I get the first bOk widget from the .glade file. I wouldn't like to
> use widget names like window1_bOk, window2_bOk etc. Instead I'd like
> the get_widget method to allow passing a namespace or sth.
>   

I asked about this problem before, and the answer was that it wasn't 
currently possible, and that names had to be unique. I now have 1 glade 
project per window, which largely works around this.

-- 
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: dkasak at nusconsulting.com.au
website: http://www.nusconsulting.com.au


More information about the Glade-users mailing list