[Glade-users] Exporing windows to another glade file

Daniel Kasak dkasak@nusconsulting.com.au
Fri, 22 Oct 2004 10:02:35 +1000


This is a multi-part message in MIME format...

------------=_1098403318-28057-128
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Christopher Cramer wrote:

>On Fri, Oct 22, 2004 at 09:07:41AM +1000, Daniel Kasak wrote:
>  
>
>>I've just realised that I can't use the same widget name twice in a 
>>glade file ( which bites, by the way )
>>    
>>
>
>Huh? I use the same widget name in the same file all the time. If you
>don't put the widgets in the same tree, or you don't have to look them
>up, it doesn't harm anything.
>
>  
>
Not according to the response I got from this bug report:
http://bugzilla.gnome.org/show_bug.cgi?id=156026
Apparently you are treading on thin ice indeed.

I *had* been re-using the same names in different windows inside the 
same glade file for quite a while, until I finally hit the above bug 
where glade_xml_get_widget() started returning the wrong widget, and it 
turns out that the fact that is *usually* seems to work is just a happy 
co-incidence, and that you should definately *not* reuse widget names 
inside the same glade file.

>>Does anyone know an easy way of exporting an entire window definition to 
>>another glade file?
>>    
>>
>
>Right click on the window, on the bottom of the menu should be the
>window widget, under that select "cut". Go to the main glade window,
>create a new project. Select "paste" from the edit menu. Save.
>  
>
Yeah I'd been trying stuff like that. Doesn't work for me. I ended up 
cutting and pasting the glade file up with a text editor. It's taken me 
the past 45 minutes, but at least it's all working now.

-- 
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@nusconsulting.com.au
website: http://www.nusconsulting.com.au

------------=_1098403318-28057-128
Content-Type: text/html; name="CANIT-VOTING-LINKS-119741-432ecf26dd42.html"
Content-Disposition: inline;
    filename="CANIT-VOTING-LINKS-119741-432ecf26dd42.html"
Content-Transfer-Encoding: 7bit
MIME-Version: 1.0
X-Mailer: MIME-tools 5.411 (Entity 5.404)

<html><head><title>CanIt Vote for ID 119741</title></head>
<body>

<!-- BEGIN-ANTISPAM-VOTING-LINKS -->
<div><span style="font-size: medium; color: black; font-style: normal; font-weight: normal; background-color: white; display: inline">
<hr>
The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only<br>
<a href="http://screamer.nusconsulting.com.au/internal/canit/b.php?c=s&i=119741&m=432ecf26dd42">Spam</a><br>
<a href="http://screamer.nusconsulting.com.au/internal/canit/b.php?c=n&i=119741&m=432ecf26dd42">Not spam</a><br>
<a href="http://screamer.nusconsulting.com.au/internal/canit/b.php?c=f&i=119741&m=432ecf26dd42">Forget previous vote</a><br>
</span></div>
<!-- END-ANTISPAM-VOTING-LINKS -->
</body>
</html>

------------=_1098403318-28057-128--