From 6f29d8543d347faabde5146e558aeda55f63c7f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 29 Jan 2008 21:08:26 +0100 Subject: [PATCH] Set tab title on window title --- tryton/gui/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tryton/gui/main.py b/tryton/gui/main.py index 2df20c46aa..72516411ef 100644 --- a/tryton/gui/main.py +++ b/tryton/gui/main.py @@ -865,6 +865,11 @@ class Main(object): def _sig_page_changt(self, notebook, page, page_num): self.last_page = self.current_page self.current_page = self.notebook.get_current_page() + title = _('Tryton') + page = self._wid_get() + if page: + title += ' - ' + page.name + self.window.set_title(title) self.sb_set() def sig_db_new(self, widget):