From 095ba4dbe337b4240e48c49b4cb972e24e3e75e1 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Mon, 9 Nov 2009 22:35:55 +0000 Subject: [PATCH] decouple a little more --- terminatorlib/newterminator.py | 2 +- terminatorlib/terminal.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/terminatorlib/newterminator.py b/terminatorlib/newterminator.py index 6eaf30e6..f251ea1b 100755 --- a/terminatorlib/newterminator.py +++ b/terminatorlib/newterminator.py @@ -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""" diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 1f67b421..88fff44b 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -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())