decouple a little more

This commit is contained in:
Chris Jones 2009-11-09 22:35:55 +00:00
parent 4284cf67ee
commit 095ba4dbe3
2 changed files with 4 additions and 1 deletions

View File

@ -84,7 +84,7 @@ class Terminator(Borg):
if next is not None:
print "sending focus to term %d" % next
self.terminals[next].vte.grab_focus()
self.terminals[next].grab_focus()
def create_group(self, name):
"""Create a new group"""

View File

@ -667,6 +667,9 @@ class Terminal(gtk.VBox):
pos = "bottom"
return pos
def grab_focus(self):
self.vte.grab_focus()
def on_vte_focus(self, widget):
self.emit('title-change', self.get_window_title())