Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/palette.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2008-04-20 02:11:24 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2008-04-20 02:11:24 (GMT)
commit75e636ef0605c9a86af64e302934330ff00f9aed (patch)
tree67c82faab674f154491d9d3ccb2bdc12034697f4 /sugar/graphics/palette.py
parentf24bdaa7d7a21a30cf561a817a0c50f0708a55b8 (diff)
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.
Diffstat (limited to 'sugar/graphics/palette.py')
-rw-r--r--sugar/graphics/palette.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py
index bcc93be..e2dfd21 100644
--- a/sugar/graphics/palette.py
+++ b/sugar/graphics/palette.py
@@ -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