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.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py
index 913a004..eb5e3c5 100644
--- a/portato/gui/gtk/windows.py
+++ b/portato/gui/gtk/windows.py
@@ -696,13 +696,11 @@ class MainWindow (Window):
self.show_package(cp, self.queue)
def title_update (self, title):
- def caller(self, t):
- self.notebook.set_tab_label_text(self.termHB, t)
if title == None: title = "Console"
else: title = ("Console (%s)" % title)
- gobject.idle_add(caller, self, title)
+ gobject.idle_add(self.notebook.set_tab_label_text, self.termHB, title)
def cb_cat_list_selection (self, view):