From: Andreas Rottmann (a.rottmann@gmx.at)
Date: Thu Sep 07 2000 - 12:07:32 EDT
James Henstridge <james@daa.com.au> writes:
> On Thu, 7 Sep 2000, Damon Chaplin wrote:
>
> > Andreas Rottmann wrote:
> > >
> > > It would be nice if glade would support creation of
> > > non-top-level-widgets (e.g. GtkBin) as if they were top-level. This is
> > > quite useful for libglade (embeding glade components in existing
> > > widgets), since the alternative is to create a top-level window and
> > > use only a part of it (the 'content'), which is not very elegant.
> >
> > Yes, it's been suggested several times.
> > We did have almost-finished code to do it at one time.
>
> If you use libglade, this is already possible. Just put your toplevel
> container widget into a window of some sort when creating the interface in
> glade. You can then tell libglade to only build widgets under a given
> named widget. See the documentation for details.
>
Know that, tried it. My Prog always crashes then, complaining the
widget got out of libglade is of unknown type and then
segfaulting. (That was the error when I did a gtk_widget_unparent on
the widget to be embedded, because previously it did complain about
having a parent when I wanted to add the glade component to a
container).
I helped myself by editing the XML by hand. Works great, but is tedious.
g, Andy
-- Andreas Rottmann | Dru@ICQ | 54523380@ICQ | a.rottmann@gmx.at Pfeilgasse 4-6/725 | A-1080 Wien | Austria | Europe http://www.8ung.at/rotty | GnuPG Key: www.8ung.at/rotty/dru.asc Fingerprint | 3E9A C485 49A4 1D17 2EA7 2BA7 22AE C9BF 8173 6279 [one of 78,35% Austrians who didnīt vote for Haider!]_______________________________________________ Glade-devel maillist - Glade-devel@helixcode.com http://lists.helixcode.com/mailman/listinfo/glade-devel
This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 12:52:50 EDT