From f2c62067c1da694c6624f0739a95c62ede6aaa26 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 25 May 2010 20:08:20 +0200 Subject: [PATCH] Handle creation of multiple tabs in a layout. Closes LP #583041 --- terminatorlib/notebook.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/terminatorlib/notebook.py b/terminatorlib/notebook.py index a803f3ce..9932b6c7 100755 --- a/terminatorlib/notebook.py +++ b/terminatorlib/notebook.py @@ -87,6 +87,10 @@ class Notebook(Container, gtk.Notebook): num = 0 for child_key in keys: page = self.get_nth_page(num) + if not page: + # This page does not yet exist, so make it + self.newtab(children[child_key]) + page = self.get_nth_page(num) page.create_layout(children[child_key]) num = num + 1