[pitivi] curve.py: also set focus keyframe on enter events
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] curve.py: also set focus keyframe on enter events
- Date: Wed, 19 Aug 2009 09:30:22 +0000 (UTC)
commit d944c4606d8e07c623f5180a0d85b65783ee331a
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date: Mon Aug 17 13:50:50 2009 -0700
curve.py: also set focus keyframe on enter events
keyframes should now be much easier to manipulate
which should close bug 591571
pitivi/ui/curve.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/curve.py b/pitivi/ui/curve.py
index ed316b9..81f6809 100644
--- a/pitivi/ui/curve.py
+++ b/pitivi/ui/curve.py
@@ -116,6 +116,9 @@ class Curve(goocanvas.ItemSimple, goocanvas.Item, View, Zoomable):
return time, value
def enter(self, item ,target):
+ coords = self.from_item_event(item, self._last_event)
+ self._kf = self._view.findKeyframe(coords)
+ self._view.setFocusedKf(self._kf)
self._view.focus()
def leave(self, item, target):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]