From 2aaba264afa9225c1bdacca3abc05b43f02d2006 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 9 Jun 2009 23:47:59 +0100 Subject: [PATCH] Connect click events on the titlebar widget to focus for that terminal. Closes LP #385229 --- terminatorlib/terminatorterm.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/terminatorlib/terminatorterm.py b/terminatorlib/terminatorterm.py index 6cd5b856..27ad6df7 100755 --- a/terminatorlib/terminatorterm.py +++ b/terminatorlib/terminatorterm.py @@ -75,6 +75,12 @@ class TerminatorTermTitle (gtk.EventBox): self.wanted = configwanted + self.connect ("button-release-event", self.on_clicked) + + def on_clicked (self, widget, event): + if self._parent is not None: + self._parent._vte.grab_focus () + def set_group_label (self, name): """If 'name' is None, hide the group name object, otherwise set it as the group label""" if name: