fix LP#213230
This commit is contained in:
parent
78c7918dd7
commit
afde88d7dc
|
@ -1060,8 +1060,8 @@ class Terminator:
|
||||||
notebook = gtk.Notebook()
|
notebook = gtk.Notebook()
|
||||||
notebook.connect('page-reordered',self.on_page_reordered)
|
notebook.connect('page-reordered',self.on_page_reordered)
|
||||||
notebook.set_property('homogeneous', True)
|
notebook.set_property('homogeneous', True)
|
||||||
|
|
||||||
notebook.set_tab_reorderable(widgetbox, True)
|
notebook.set_tab_reorderable(widgetbox, True)
|
||||||
|
|
||||||
if isinstance(parent, gtk.Paned):
|
if isinstance(parent, gtk.Paned):
|
||||||
if parent.get_child1() == widgetbox:
|
if parent.get_child1() == widgetbox:
|
||||||
widgetbox.reparent(notebook)
|
widgetbox.reparent(notebook)
|
||||||
|
@ -1073,7 +1073,11 @@ class Terminator:
|
||||||
widgetbox.reparent(notebook)
|
widgetbox.reparent(notebook)
|
||||||
parent.add(notebook)
|
parent.add(notebook)
|
||||||
notebook.set_tab_reorderable(widgetbox,True)
|
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. set_tab_label_packing(widgetbox, True, True, gtk.PACK_START)
|
||||||
notebook.show()
|
notebook.show()
|
||||||
elif isinstance(parent, gtk.Notebook):
|
elif isinstance(parent, gtk.Notebook):
|
||||||
|
|
Loading…
Reference in New Issue