Fixes splits not being central mith multiple tabs (Justin Ossevoort). Closes LP#1186953

This commit is contained in:
Stephen Boddy 2013-10-25 20:13:57 +02:00
commit 3931a5cfe8

View File

@ -142,6 +142,8 @@ class Notebook(Container, gtk.Notebook):
else:
container = maker.make('hpaned')
self.get_toplevel().set_pos_by_ratio = True
if not sibling:
sibling = maker.make('terminal')
sibling.set_cwd(cwd)
@ -167,6 +169,10 @@ class Notebook(Container, gtk.Notebook):
self.show_all()
terminal.grab_focus()
while gtk.events_pending():
gtk.main_iteration_do(False)
self.get_toplevel().set_pos_by_ratio = False
def add(self, widget, metadata=None):
"""Add a widget to the container"""
dbg('adding a new tab')