lose a function to re-emit a signal, and an unnecessary invocation thereof

This commit is contained in:
Chris Jones 2009-09-06 23:53:48 +01:00
parent a31c0ef411
commit 2aae5da8f1
1 changed files with 2 additions and 6 deletions

View File

@ -225,8 +225,8 @@ class Terminal(gtk.VBox):
self.vte.connect('composited-changed', self.vte.connect('composited-changed',
self.on_composited_changed) self.on_composited_changed)
self.vte.connect('window-title-changed', self.vte.connect('window-title-changed', lambda x:
self.on_vte_title_change) self.emit('title-change', self.get_window_title()))
self.vte.connect('grab-focus', self.on_vte_focus) self.vte.connect('grab-focus', self.on_vte_focus)
self.vte.connect('focus-out-event', self.on_vte_focus_out) self.vte.connect('focus-out-event', self.on_vte_focus_out)
self.vte.connect('focus-in-event', self.on_vte_focus_in) self.vte.connect('focus-in-event', self.on_vte_focus_in)
@ -535,9 +535,6 @@ class Terminal(gtk.VBox):
info, time, data): info, time, data):
pass pass
def on_vte_title_change(self, widget):
self.emit('title-change', self.get_window_title())
def on_vte_focus(self, widget): def on_vte_focus(self, widget):
pass pass
@ -599,7 +596,6 @@ class Terminal(gtk.VBox):
logutmp=update_records, directory=self.cwd) logutmp=update_records, directory=self.cwd)
self.command = shell self.command = shell
self.on_vte_title_change(self.vte)
self.titlebar.update() self.titlebar.update()
if self.pid == -1: if self.pid == -1: