Ok, more exploration: the real problem seems to be the scroll
bar that's contained in the upper window. The scroll bar does not
seem to resize to a size smaller than the original of the text
box. I've changed the program Pedro posted so that it demonstrates the
problem. One alternative is to enclose the scrollbar in a VBox and
then the pane grip does not disappear when the pane is shrunk below
the original size but the scroll bar doesn't change size either and
just looks funny. Am I supposed to fix this via signaling?

                   -- Mike

========================================================

#!/usr/bin/env python

import gtk

def quit(*args):
    gtk.mainquit()

w = gtk.GtkWindow()
p = gtk.GtkVPaned()

t = gtk.GtkHBox ()
table = gtk.GtkTable (2, 1)
t.add (table)
text = gtk.GtkText ()
text.set_usize (-1, 150)
table.attach (text, 0, 1, 0, 1)
scroll = gtk.GtkVScrollbar (text.get_vadjustment ())
table.attach (scroll, 1, 2, 0, 1, xoptions=gtk.FILL)

b = gtk.GtkHBox()

b1 = gtk.GtkHBox()
t1 = gtk.GtkText()
b1.pack_start(t1)

b2 = gtk.GtkHBox()
t2 = gtk.GtkText()
b2.pack_start(t2)

b3 = gtk.GtkHBox()
t3 = gtk.GtkText()
b3.pack_start(t3)

b.pack_start(b1)
b.pack_start(b2)
b.pack_start(b3)

p.pack1(t, 0, 1)
p.pack2(b, 0, 1)

w.add(p)

w.connect("destroy_event", quit)
w.connect("delete_event", quit)

w.show_all()

gtk.mainloop()

===========================================================

-- 
Michael Gilfix
[EMAIL PROTECTED]

Attachment: msg03457/pgp00000.pgp
Description: PGP signature

Reply via email to