summaryrefslogtreecommitdiff
path: root/portato/gui/gtk/windows.py
diff options
context:
space:
mode:
Diffstat (limited to 'portato/gui/gtk/windows.py')
-rw-r--r--portato/gui/gtk/windows.py19
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."""