From b3ff69682391662c6fde5f12ec7741c87aae2b21 Mon Sep 17 00:00:00 2001 From: flavio Date: Fri, 27 Jul 2012 19:52:48 +0000 Subject: ComboBoxText Corrections --- (limited to 'face.py') diff --git a/face.py b/face.py index 6aa3151..197b59c 100644 --- a/face.py +++ b/face.py @@ -139,10 +139,8 @@ class View(Gtk.EventBox): def look_at(self, pos=None): if self._eyes: if pos is None: - display = Gdk.Display() - # FIXME: Bug in gi - # screen_, x, y, modifiers_ = display.get_pointer() - x, y = self.get_pointer() + display = Gdk.Display.get_default() + screen, x, y, modifiers = display.get_pointer() else: x, y = pos map(lambda e, x=x, y=y: e.look_at(x, y), self._eyes) -- cgit v0.9.1