summaryrefslogtreecommitdiff
path: root/portato/gui/windows/main.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-06-08 00:12:17 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-06-08 00:12:17 +0200
commit5f9e42aa2ecac5c718496c95bc631830b92ae4ef (patch)
tree063cdd21b987ee1c6d93d2215a59a0e30c6a6a41 /portato/gui/windows/main.py
parentb19c6eafe663dee94aa9c76032ebab4f419013ec (diff)
downloadportato-5f9e42aa2ecac5c718496c95bc631830b92ae4ef.tar.gz
portato-5f9e42aa2ecac5c718496c95bc631830b92ae4ef.tar.bz2
portato-5f9e42aa2ecac5c718496c95bc631830b92ae4ef.zip
Make the console title length changeable by the user
Diffstat (limited to '')
-rw-r--r--portato/gui/windows/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py
index 412ea1c..4eac88b 100644
--- a/portato/gui/windows/main.py
+++ b/portato/gui/windows/main.py
@@ -1166,7 +1166,8 @@ class MainWindow (Window):
else:
title = ("%s (%s)") % (_("Console"), title)
- if (len(title) > 60): title = "%s..." % title[:57]
+ tlength = int(self.cfg.get("titlelength", "GUI"))
+ if (len(title) > tlength): title = "%s..." % title[:tlength-3]
self.sysNotebook.set_tab_label_text(self.termHB, title)
return False