diff options
author | necoro <> | 2007-04-27 18:32:07 +0000 |
---|---|---|
committer | necoro <> | 2007-04-27 18:32:07 +0000 |
commit | ce3139188ed3f4564d37a1ffb02bb20daff6adb1 (patch) | |
tree | 93aaf3259750f9d3c61712d4b6dd420258c096c3 /portato/gui/gtk/windows.py | |
parent | 9b4319e484de43ac72b407d0656e967445c36dd4 (diff) | |
download | portato-ce3139188ed3f4564d37a1ffb02bb20daff6adb1.tar.gz portato-ce3139188ed3f4564d37a1ffb02bb20daff6adb1.tar.bz2 portato-ce3139188ed3f4564d37a1ffb02bb20daff6adb1.zip |
fixed bugs in gtk and qt
Diffstat (limited to '')
-rw-r--r-- | portato/gui/gtk/windows.py | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py index 7c6f41b..ffeb01f 100644 --- a/portato/gui/gtk/windows.py +++ b/portato/gui/gtk/windows.py @@ -914,15 +914,18 @@ class MainWindow (Window): def title_update (self, title): - if self.tray: - self.tray.set_tooltip(title) - - if title == None: - title = "Console" - else: - title = ("Console (%s)" % title) + def __update(title): + if self.tray: + self.tray.set_tooltip(title) + + if title == None: + title = "Console" + else: + title = ("Console (%s)" % title) + + self.notebook.set_tab_label_text(self.termHB, title) - gobject.idle_add(self.notebook.set_tab_label_text, self.termHB, title) + gobject.idle_add(__update, title) def cb_cat_list_selection (self, view): """Callback for a category-list selection. Updates the package list with the packages in the category.""" |