On 14 Mar 2002 19:11:11 +0100
"Johan Dahlin" <[EMAIL PROTECTED]> wrote:

> tor 2002-03-14 klockan 18.28 skrev Jon Nelson:
> > I have a GtkTree that I populate with different contents depending
> > on what is chosen in a GtkCList.  Yay, that part works great.
> > 
> > The GtkTree is contained in a viewport, which itself is in a 
> > scrolled window.  I'm using Glade for most of the UI, but
> > populate the widget by hand.
> > 
> > Now.
> > 
> > I go and populate the widget.
> > And sometimes, there are enough items in the widget to require the
> > automatic vertical scrollbars to kick in. However, the scrollbars
> > *don't* kick in *until* I expand one of the items. If I collapse
> > the same item, the scrollbar remains (as it should, as there are more
> > items in the GtkTree than can be displayed).
> > 
> > How do I get the scrollbar to recognize that it ought to appear?
> Go in glade and select the GtkTree viewport.
> H policy and V policy should be set to Always instead of Automatic.

I don't want them *always* displayed, only when it is appropriate to
do so.  "Automatic" means "automatic", as in, I shouldn't have
to poke it.  Note (new knowledge) - the undesireable behavior *only* 
happens the first time the widget is populated with enough items
to require the scrollbar. (Vertical only).


> Note, that using GtkTree is probably a bad idea, since it's it
> deprecated. I would rather use GtkCTree (but it's also marked deprecated
> in gtk+ 2.0). Or switch to pygtk2 and use GtkTreeView :)

I have no choice.  I can't use the GtkCTree in this instance at all,
and I have tied to Python 1.5.2, gtk 1.2.[6,8] and pygtk 0.6.8 (can't run anything
newer because they require either newer version of gtk or python
than I can provide).  The GtkCTree doesn't support arbitrary levels
of nesting.

-- 
The Amazing* Jon Nelson <[EMAIL PROTECTED]>
C and Python Programmer, Code Gardener
Just because it's not broken doesn't mean we can't take it apart.
  (* may not actually amaze)
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to