Make the choice of Paned slightly less pained

This commit is contained in:
Chris Jones 2009-05-26 11:27:26 +02:00
parent aadf44f893
commit 67753449a0
1 changed files with 9 additions and 2 deletions

View File

@ -579,8 +579,15 @@ class Terminator:
""" """
Add a term to another at position pos Add a term to another at position pos
""" """
vertical = pos in ("top", "bottom") if pos in ("top", "bottom"):
pane = (vertical) and gtk.VPaned () or gtk.HPaned () pane = gtk.VPaned()
vertical = True
elif pos in ("left", "right"):
pane = gtk.HPaned()
vertical = False
else:
err('Terminator.add: massive pos fail: %s' % pos)
return
# get the parent of the provided terminal # get the parent of the provided terminal
parent = widget.get_parent () parent = widget.get_parent ()