Re: Controlling resizing....
- From: Lindley M French <lfrench1 gmu edu>
- To: gtk-list gnome org
- Subject: Re: Controlling resizing....
- Date: Wed, 13 Feb 2008 11:39:05 -0500
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 gmail com>
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 gmu edu> 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 gnome org
> > http://mail.gnome.org/mailman/listinfo/gtk-list
> >
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]