[Glade-users] 'Stacking' glade interfaces inside one another?

Matthew Yaconis myaconis at nycap.rr.com
Fri May 5 10:31:27 EDT 2006


Been a while since I looked at the code...

The glade_xml_new() function actually does both loading an entire interface 
and also selectively loading just the widgets that branch off of the name 
provided.  (Passing NULL in the second parameter grabs the whole interface, 
providing a character string causes glade to only load the widgets that 
branch off of the requested widget).

Hope that helps...

----- Original Message ----- 
From: "Matthew Yaconis" <myaconis at nycap.rr.com>
To: "Daniel Kasak" <dkasak at nusconsulting.com.au>; 
<glade-users at lists.ximian.com>
Sent: Thursday, May 04, 2006 11:10 PM
Subject: Re: [Glade-users] 'Stacking' glade interfaces inside one another?


> Daniel,
>
> I have done something similar to what you request by using one of the 
> libglade API calls for generating an interface based on a root widget.  (I 
> forget the call off the top of my head...I can get to the code tomorrow to 
> give you specifics...) Effectively you:
>
> 1.  generate your root window and the container widgets you want to stick 
> the other windows in.
> 2.  grab the top level container(s) from the window(s) you want to add to 
> your root window
> 3.  add the top level container(s) to the container widgets obtained in 
> (1)
>
> I used a tab folder for this, i.e. had several different windows that got 
> stuffed into different tabs.
>
> Hopefully that helps...sorry I don't have the exact function call 
> memorized.
>
> Matt
>
> ----- Original Message ----- 
> From: "Daniel Kasak" <dkasak at nusconsulting.com.au>
> To: <glade-users at lists.ximian.com>
> Sent: Thursday, May 04, 2006 9:45 PM
> Subject: [Glade-users] 'Stacking' glade interfaces inside one another?
>
>
>> Is it possible to 'stack' one glade interface inside another?
>>
>> For example, I'd have 1 large window, which contains other smaller 
>> 'windows'. I realise that these smaller 'windows' wouldn't be windows - 
>> ie I don't want separate GtkWindow objects, but all the *child* objects 
>> of the smaller window, to be placed in my main window.
>>
>> +------------------------------+
>> +          Main Window         +
>> +--------------+---------------+
>> +    Common    +    Another    +
>> +     Sub      +      Sub      +
>> +    Window    +    Window     +
>> +--------------+---------------+
>>
>> So I'd do something like add an hbox, and then *somehow* populate it with 
>> the widgets from separate glade forms ( minus the top-level GtkWindow ).
>>
>> The reason I'm asking is because I'd like to be able to easily share 
>> these smaller windows between applications, and also in different 
>> sections of the same application.
>>
>> Possible?
>>
>> -- 
>> 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
>> _______________________________________________
>> Glade-users maillist  -  Glade-users at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/glade-users
>
> _______________________________________________
> Glade-users maillist  -  Glade-users at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-users 



More information about the Glade-users mailing list