Fixes splits not being central mith multiple tabs (Justin Ossevoort). Closes LP#1186953
This commit is contained in:
commit
3931a5cfe8
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user