That's not quite right. It does appear to do something, but the window snaps back to its full size immediately. I also tried gtk_widget_set_size_request(1,1), but that merely made the window stop auto-growing when more space was needed. It appears that collapsing an expander does nothing to change the expander's contribution to the size request. *That* is what I'd like to change if I can. ----- Original Message ----- From: richard boaz <ivor.boaz@xxxxxxxxx> Date: Wednesday, February 13, 2008 11:45 am Subject: Re: Controlling resizing.... > you might try gtk_window_resize() on the toplevel window, > specifying 1 for > both width and height, which will make it as small as possible as > defined by > the window's contents. > > richard > > On Feb 13, 2008 5:39 PM, Lindley M French <lfrench1@xxxxxxx> wrote: > > > 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 <ivor.boaz@xxxxxxxxx> > > 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 <lfrench1@xxxxxxx> > 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 > > > > gtk-list@xxxxxxxxx > > > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > > > > > > > _______________________________________________ > > gtk-list mailing list > > gtk-list@xxxxxxxxx > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list