From 4b7b1f37e4a060bc79ba941c43335fab52c62f23 Mon Sep 17 00:00:00 2001 From: Emmanuel Bretelle Date: Sat, 10 May 2008 13:08:20 +0100 Subject: [PATCH] Fix redundant title when there is only one TerminatorTerm * closes LP#215210 https://bugs.launchpad.net/terminator/+bug/215210 --- terminator | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/terminator b/terminator index 93d6661c..2f5034cc 100755 --- a/terminator +++ b/terminator @@ -103,7 +103,9 @@ class TerminatorTerm: self._box.show() self._box.pack_start(self._titlebox, False) self._box.pack_start(self._termbox) - if self.conf.titlebars: + if len(self.terminator.term_list) > 0 and self.conf.titlebars: + if len(self.terminator.term_list) == 1: + self.terminator.term_list[0]._titlebox.show() self._titlebox.show() else: self._titlebox.hide() @@ -526,7 +528,7 @@ class Terminator: self.command = command self._fullscreen = False - + self.term_list = [] stores = [] stores.append (terminatorconfig.TerminatorConfValuestoreRC ()) @@ -745,6 +747,8 @@ class Terminator: else: if index == 0: index = 1 self.term_list[index - 1]._vte.grab_focus () + if len(self.term_list) == 1: + self.term_list[0]._titlebox.hide() return