Merge branch 'fix_mousedetector_stop' of https://github.com/godiard/sugar-toolkit-gtk3

This commit is contained in:
Sam Parkinson 2015-07-26 09:32:02 +10:00
commit ecc2f491b6

View File

@ -441,6 +441,7 @@ class MouseSpeedDetector(GObject.GObject):
def stop(self): def stop(self):
if self._timeout_hid is not None: if self._timeout_hid is not None:
GObject.source_remove(self._timeout_hid) GObject.source_remove(self._timeout_hid)
self._timeout_hid = None
self._state = None self._state = None
def _get_mouse_position(self): def _get_mouse_position(self):