Whoops, I was using gtk_container_add for the menu rather than 
gtk_box_pack_start. That'd do it!

Still curious about how to make the top-level window shrink when space is no 
longer needed. It expands just fine....

I know it may not be an ideal approach, and if I had time I'd explore other 
options, but I don't.

----- Original Message -----
From: richard boaz <[EMAIL PROTECTED]>
Date: Wednesday, February 13, 2008 11:20 am
Subject: Re: Controlling resizing....

> play with the various options to gtk_box_pack_start(), or 
> whichever you use
> in the family.
> 
> these control how children behave when other children appear and 
> disappear.
> having the uppermost window/container shrink and expand is bad 
> form, this
> should be left to the user to decide.  though that said, each 
> problem is
> unique and requires its own solution.  (not sure if this is what you
> meant/intend anyway, just thought i'd throw it in.)
> 
> richard
> 
> On Feb 13, 2008 5:07 PM, Lindley M French <[EMAIL PROTECTED]> wrote:
> 
> > A couple of questions.....
> >
> > I have a GtkExpander containing a fairly large child. I have a 
> GtkMenuBar> above the expander (positionally, not hierarchically), 
> and a GtkTreeView
> > below it.
> >
> > Ideally, I'd like the behavior to be the following:
> >
> > When the expander is collapsed, the GtkTreeView should jump 
> higher on the
> > screen (to the extent possible given the widgets still existing 
> in the same
> > hbox as the expander), and anything to the right of the expander 
> (including> the edge of the top-level window) should jump leftwards.
> >
> > What actually happens:
> >
> > The GtkTreeView stays right where it is, and the GtkMenuBar suddenly
> > becomes vertically enormous. While widgets to the right of the 
> expander do
> > move left, the size of the top-level window does not shrink, 
> leaving a big
> > empty area on the right.
> >
> > Any ideas how I can fix this?
> > _______________________________________________
> > gtk-list mailing list
> > [email protected]
> > http://mail.gnome.org/mailman/listinfo/gtk-list
> >
> 
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to