From e30bc9c68979fa5334a2ba99f4c48442229a85ad Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Sun, 29 Jul 2007 03:16:18 +0100 Subject: [PATCH] Fix resizing so you can actually make the widget smaller --- terminator.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/terminator.py b/terminator.py index 7c99a40c..d062f443 100755 --- a/terminator.py +++ b/terminator.py @@ -321,8 +321,8 @@ class Terminator: termwidth = parent.allocation.width / 2 widget.get_box ().reparent (pane) - pane.pack1 (widget.get_box (), True, False) - pane.pack2 (term2.get_box (), True, False) + pane.pack1 (widget.get_box (), True, True) + pane.pack2 (term2.get_box (), True, True) parent.add (pane) pane.set_position (termwidth) @@ -337,13 +337,13 @@ class Terminator: if (widget.get_box () == parent.get_child1 ()): widget.get_box ().reparent (pane) - parent.pack1 (pane, True, False) + parent.pack1 (pane, True, True) else: widget.get_box ().reparent (pane) - parent.pack2(pane, True, False) + parent.pack2(pane, True, True) - pane.pack1 (widget.get_box (), True, False) - pane.pack2 (term2.get_box (), True, False) + pane.pack1 (widget.get_box (), True, True) + pane.pack2 (term2.get_box (), True, True) parent.show_all () return (term2) @@ -359,8 +359,8 @@ class Terminator: termheight = parent.allocation.height / 2 widget.get_box ().reparent (pane) - pane.pack1 (widget.get_box (), True, False) - pane.pack2 (term2.get_box (), True, False) + pane.pack1 (widget.get_box (), True, True) + pane.pack2 (term2.get_box (), True, True) parent.add (pane) pane.set_position (termheight) @@ -375,13 +375,13 @@ class Terminator: if (widget.get_box () == parent.get_child1 ()): widget.get_box ().reparent (pane) - parent.pack1 (pane, True, False) + parent.pack1 (pane, True, True) else: widget.get_box ().reparent (pane) - parent.pack2(pane, True, False) + parent.pack2(pane, True, True) - pane.pack1 (widget.get_box (), True, False) - pane.pack2 (term2.get_box (), True, False) + pane.pack1 (widget.get_box (), True, True) + pane.pack2 (term2.get_box (), True, True) parent.show_all () return (term2)