From afde88d7dc6bf8711f1a2b034dd448247bc30e3f Mon Sep 17 00:00:00 2001 From: Emmanuel Bretelle Date: Tue, 8 Apr 2008 20:35:48 +0100 Subject: [PATCH] fix LP#213230 --- terminator | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/terminator b/terminator index 31d06480..adf82eb6 100755 --- a/terminator +++ b/terminator @@ -1060,8 +1060,8 @@ class Terminator: notebook = gtk.Notebook() notebook.connect('page-reordered',self.on_page_reordered) notebook.set_property('homogeneous', True) - notebook.set_tab_reorderable(widgetbox, True) + if isinstance(parent, gtk.Paned): if parent.get_child1() == widgetbox: widgetbox.reparent(notebook) @@ -1073,7 +1073,11 @@ class Terminator: widgetbox.reparent(notebook) parent.add(notebook) notebook.set_tab_reorderable(widgetbox,True) - notebook.set_tab_label_text(widgetbox, widget._vte.get_window_title()) + notebooklabel = "" + print widget._vte.get_window_title() + if widget._vte.get_window_title() is not None: + notebooklabel = widget._vte.get_window_title() + notebook.set_tab_label_text(widgetbox, notebooklabel) notebook. set_tab_label_packing(widgetbox, True, True, gtk.PACK_START) notebook.show() elif isinstance(parent, gtk.Notebook):