From 67b79ff1daf4c9cedff77e7a43e2ac5cb9a5b01d Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 9 Dec 2009 13:02:31 +0000 Subject: [PATCH] There's no reason anymore to special-case notebook here --- terminatorlib/paned.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/terminatorlib/paned.py b/terminatorlib/paned.py index 6a8e1886..bee7a28a 100755 --- a/terminatorlib/paned.py +++ b/terminatorlib/paned.py @@ -113,20 +113,15 @@ class Paned(Container): def wrapcloseterm(self, widget): """A child terminal has closed, so this container must die""" + dbg('Paned::wrapcloseterm: Called on %s' % widget) if self.closeterm(widget): # At this point we only have one child, which is the surviving term sibling = self.children[0] self.remove(sibling) parent = self.get_parent() - maker = Factory() - if maker.isinstance(parent, 'Notebook'): - page_num = parent.page_num(self) - parent.remove_page(page_num) - parent.insert_page(sibling, None, page_num) - else: - parent.remove(self) - parent.add(sibling) + parent.remove(self) + parent.add(sibling) del(self) else: dbg("Paned::wrapcloseterm: self.closeterm failed")