[pitivi: 2/9] controller.py: don't change cursor back to arrow while dragging to avoid
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi: 2/9] controller.py: don't change cursor back to arrow while dragging to avoid
- Date: Wed, 29 Jul 2009 06:29:27 +0000 (UTC)
commit 85f3524f37ca02f5f8c25e7cce21ab9ee9a4307d
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date: Tue Jul 28 12:43:28 2009 -0700
controller.py: don't change cursor back to arrow while dragging to avoid
jitter. Set the cursor as appropriate when the drag ends.
pitivi/ui/controller.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/controller.py b/pitivi/ui/controller.py
index c512567..2ecf495 100644
--- a/pitivi/ui/controller.py
+++ b/pitivi/ui/controller.py
@@ -95,9 +95,9 @@ class Controller(object):
self._event_common(item, target, event)
self._canvas.keyboard_ungrab(item, event.time)
self._ptr_within = False
- event.window.set_cursor(ARROW)
if not self._dragging:
self.leave(item, target)
+ event.window.set_cursor(ARROW)
return True
@handler(_view, "button_press_event")
@@ -181,6 +181,9 @@ class Controller(object):
else:
self.click(point)
self._last_click = event.time
+ event.window.set_cursor(self._cursor)
+ else:
+ event.window.set_cursor(ARROW)
def _drag_threshold(self):
last = self.pos(self._dragging)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]