[Glade-users] The composition of different Glade files

Tristan Van Berkom tristan.van.berkom at gmail.com
Tue Sep 15 13:35:20 EDT 2009


On Tue, Sep 15, 2009 at 6:59 AM, Justin Paston-Cooper
<paston.cooper at googlemail.com> wrote:
> Hello,
>
> Could anyone give me advice on how to create separate Glade files which
> can be incorporated into each other?
> My example is that I want to build a simple client for an IRC-like
> protocol where I have a Notebook with tabs
> for each channel, and an input and text display in each open channel. I
> would like to separately design the outer part
> with its Notebook, and the inner part with the input and text display. How
> should I go about this?

Pretty simple.

Glade will let you define an interface without a toplevel window, so
you can define a hierarchy with a toplevel alignment or a toplevel
GtkVBox for instance.

Then using GtkBuilder, you create your main interface which contains
an empty notebook, and use GtkBuilder to build the inner area
of the notebook page on the fly for every page.

Note you will probably want to use separate files for the main
interface and the notebook page as it may be easier to work
with GtkBuilder that way.

Cheers,
       -Tristan


More information about the Glade-users mailing list