Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Speak.activity/eye.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-12-25 12:22:35 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-12-25 12:22:35 (GMT)
commit070882bcfecee3d17a909c4072da7b2f160d41d3 (patch)
tree5f364b26912dc6904c307ae49df4bd9cdd739a93 /Speak.activity/eye.py
parentea7c199885e7295cfa6b6038f3a9865fee9e7f7b (diff)
Switch to new toolbar design
Diffstat (limited to 'Speak.activity/eye.py')
-rw-r--r--Speak.activity/eye.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/Speak.activity/eye.py b/Speak.activity/eye.py
index 1fe23f5..72f058e 100644
--- a/Speak.activity/eye.py
+++ b/Speak.activity/eye.py
@@ -43,17 +43,6 @@ class Eye(gtk.DrawingArea):
self.connect("button_press_event", self._mouse_pressed_cb)
self.connect("button_release_event", self._mouse_released_cb)
- # Instead of listening for mouse move events we could poll to see if the mouse has moved
- # would let us react to the mouse even when it isn't directly over this widget.
- # Unfortunately that would cause a lot of CPU usage. So instead we rely on our parent to
- # tell us to redraw when the mouse has moved. We still need to call add_events so that
- # our parent will get mouse motion events, but we don't connect the callback for them ourselves.
- self.add_events(gtk.gdk.POINTER_MOTION_MASK)
- # self.connect("motion_notify_event", self._mouse_moved_cb)
-
- def _mouse_moved_cb(self, widget, event):
- self.queue_draw()
-
def _mouse_pressed_cb(self, widget, event):
self.blink = True
self.queue_draw()