From 0c354b6aa2250d4607bceb9fef08cff0a61002b0 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Mon, 17 Nov 2008 11:19:12 +0000 Subject: [PATCH] Remove APP_NAME from the title when we set it, to fix LP: #278004 --- terminatorlib/terminatorterm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminatorlib/terminatorterm.py b/terminatorlib/terminatorterm.py index 5b389f7c..93fa2bfe 100755 --- a/terminatorlib/terminatorterm.py +++ b/terminatorlib/terminatorterm.py @@ -19,7 +19,7 @@ import pygtk pygtk.require ("2.0") import gobject, gtk, pango -import os, sys, subprocess, pwd +import os, sys, subprocess, pwd, re #import version details from terminatorlib.version import * @@ -1082,7 +1082,7 @@ text/plain vte.set_property ("tooltip-text", title) #set the title anyhow, titlebars setting only show/hide the label self._title.set_text(title) - self.terminator.set_window_title("%s - %s" % (title, APP_NAME.capitalize())) + self.terminator.set_window_title("%s - %s" % (re.sub(' - %s' % APP_NAME.capitalize(), '', title), APP_NAME.capitalize())) notebookpage = self.terminator.get_first_notebook_page(vte) while notebookpage != None: if notebookpage[0].get_tab_label(notebookpage[1]):