[Glade-users] The composition of different Glade files
- From: paston.cooper at googlemail.com (Justin Paston-Cooper)
- Subject: [Glade-users] The composition of different Glade files
- Date: Tue, 15 Sep 2009 19:27:40 +0100
Hi,
Could you please tell me how to do this? I haven't been able to figure out
how to make an interface with a top-level
other than one in the "Toplevels" section.
On Tue, 15 Sep 2009 18:35:20 +0100, Tristan Van Berkom
<tristan.van.berkom at gmail.com> wrote:
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]