Jon Nelson wrote:

>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?
>
My general answer to questions about the old GtkTree widget is that the 
widget is very broken, and if it works without problem for you the it is 
a fluke.  For GTK 2.0, you need to define a special preprocessor macro 
(GTK_ENABLE_BROKEN) in order to even use the widget.  If you are using 
2.0, I recommend looking at the new GtkTreeView widget.  If you must use 
1.2, then I recommend using the GtkCTree widget instead (which has its 
own problems, but is less broken).

James.


_______________________________________________
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