From cbfb10d02033787d7b37eafa23c50b96cd689eef Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 25 Aug 2006 17:44:07 +0200 Subject: [PATCH] Keep a reference on the key grabber --- shell/Shell.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/shell/Shell.py b/shell/Shell.py index 1a5e6fca..3c548307 100755 --- a/shell/Shell.py +++ b/shell/Shell.py @@ -57,12 +57,12 @@ class Shell(gobject.GObject): def __init__(self): gobject.GObject.__init__(self) - key_grabber = KeyGrabber() - key_grabber.connect('key-pressed', self.__global_key_pressed_cb) - key_grabber.grab('F1') - key_grabber.grab('F2') - key_grabber.grab('F3') - key_grabber.grab('F4') + self._key_grabber = KeyGrabber() + self._key_grabber.connect('key-pressed', self.__global_key_pressed_cb) + self._key_grabber.grab('F1') + self._key_grabber.grab('F2') + self._key_grabber.grab('F3') + self._key_grabber.grab('F4') self._screen = wnck.screen_get_default() self._hosts = {}