From 87c9bdef6d4cf78adc2bf59be4ff959435a3999b Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 7 Nov 2007 14:05:15 -0500 Subject: [PATCH] Switch to packing instead of adding. Don't split into 4 terminals by default and don't maximise by default. This is so I can test resizing issues --- terminator | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/terminator b/terminator index 6ccebc3a..8ae4a5e1 100755 --- a/terminator +++ b/terminator @@ -333,7 +333,7 @@ class Terminator: self.window.set_icon (self.icon) self.window.connect ("delete_event", self.on_delete_event) self.window.connect ("destroy", self.on_destroy_event) - self.window.maximize () +# self.window.maximize () # Start out with just one terminal # FIXME: This should be really be decided from some kind of profile @@ -344,7 +344,7 @@ class Terminator: self.window.show_all () # For some unknown reason, spawning 4 terminals at the speed python executes on my laptop causes them all to hang, so we will make one, wait a second and then split ourselves, which works fine. Weird. - gobject.timeout_add (1000, self.do_initial_setup, term) +# gobject.timeout_add (1000, self.do_initial_setup, term) def do_initial_setup (self, term): term2 = self.splitaxis (term, True) @@ -403,8 +403,8 @@ class Terminator: widget.get_box ().reparent (pane) - pane.add1 (widget.get_box ()) - pane.add2 (term2.get_box ()) + pane.pack1 (widget.get_box (), True, True) + pane.pack2 (term2.get_box (), True, True) parent.add (pane) pane.set_position (newpos) @@ -416,13 +416,13 @@ class Terminator: if (widget.get_box () == parent.get_child1 ()): widget.get_box ().reparent (pane) - parent.add1 (pane) + parent.pack1 (pane, True, True) else: widget.get_box ().reparent (pane) - parent.add2 (pane) + parent.pack2 (pane, True, True) - pane.add1 (widget.get_box ()) - pane.add2 (term2.get_box ()) + pane.pack1 (widget.get_box (), True, True) + pane.pack2 (term2.get_box (), True, True) parent.show_all () # insert the term reference into the list