From 0796e70808db7dfc0eca53ddc6141a99847b5fa5 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Mon, 7 Dec 2009 20:32:47 +0000 Subject: [PATCH] Don't create a one-off TabLabel for the first tab, Notebook.newtab() makes them and now the order of creation is fixed they even show up properly --- terminatorlib/notebook.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/terminatorlib/notebook.py b/terminatorlib/notebook.py index 7c7caed0..21f68679 100755 --- a/terminatorlib/notebook.py +++ b/terminatorlib/notebook.py @@ -37,12 +37,6 @@ class Notebook(Container, gtk.Notebook): window.add(self) self.newtab(child) - label = TabLabel(self.window.get_title(), self) - self.set_tab_label(child, label) - self.set_tab_label_packing(child, not self.config['scroll_tabbar'], - not self.config['scroll_tabbar'], - gtk.PACK_START) - self.show_all() def configure(self): @@ -123,13 +117,12 @@ class Notebook(Container, gtk.Notebook): label.show_all() widget.show_all() + self.append_page(widget, None) self.set_tab_label(widget, label) self.set_tab_label_packing(widget, not self.config['scroll_tabbar'], not self.config['scroll_tabbar'], gtk.PACK_START) - - self.append_page(widget, None) self.set_current_page(-1) widget.grab_focus()