Handle creation of multiple tabs in a layout. Closes LP #583041
This commit is contained in:
parent
3aba98dade
commit
f2c62067c1
|
@ -87,6 +87,10 @@ class Notebook(Container, gtk.Notebook):
|
||||||
num = 0
|
num = 0
|
||||||
for child_key in keys:
|
for child_key in keys:
|
||||||
page = self.get_nth_page(num)
|
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])
|
page.create_layout(children[child_key])
|
||||||
num = num + 1
|
num = num + 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue