Work around circular dep between Icon and Palette. I don't

like it though, we should get rid of the dep.
Fix palette bug which I introduced with the pylint changes.
This commit is contained in:
Marco Pesenti Gritti
2008-04-20 04:11:24 +02:00
parent f24bdaa7d7
commit 75e636ef06
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -98,7 +98,7 @@ class MouseSpeedDetector(gobject.GObject):
def _get_mouse_position(self):
display = gtk.gdk.display_get_default()
return display.get_pointer()[1:2]
return display.get_pointer()[1:3]
def _detect_motion(self):
oldx, oldy = self._mouse_pos
@@ -737,7 +737,7 @@ class Invoker(gobject.GObject):
if self._cursor_x == -1 or self._cursor_y == -1:
display = gtk.gdk.display_get_default()
x, y = display.get_pointer()[1:2]
x, y = display.get_pointer()[1:3]
self._cursor_x = x
self._cursor_y = y