Fix bug which loses all terminals at startup. Mention licence in setup.py

This commit is contained in:
Chris Jones 2007-08-11 00:33:00 +01:00
parent 674326ead4
commit 16e74b1201
2 changed files with 6 additions and 1 deletions

View File

@ -8,6 +8,7 @@ setup(name='Terminator',
author='Chris Jones', author='Chris Jones',
author_email='cmsj@tenshu.net', author_email='cmsj@tenshu.net',
url='http://www.tenshu.net/terminator/', url='http://www.tenshu.net/terminator/',
licence='GPL v2',
scripts=['terminator.py'], scripts=['terminator.py'],
) )

View File

@ -334,6 +334,7 @@ class Terminator:
term2 = TerminatorTerm (self) term2 = TerminatorTerm (self)
parent = widget.get_box ().get_parent () parent = widget.get_box ().get_parent ()
if vert: if vert:
pane = gtk.VPaned () pane = gtk.VPaned ()
else: else:
@ -364,7 +365,10 @@ class Terminator:
widget.get_box ().reparent (pane) widget.get_box ().reparent (pane)
pane.add1 (widget.get_box ()) pane.add1 (widget.get_box ())
pane.add2 (widget.get_box ()) pane.add2 (term2.get_box ())
parent.add (pane)
pane.set_position (newpos)
if isinstance (parent, gtk.Paned): if isinstance (parent, gtk.Paned):
# We are inside a split term # We are inside a split term