[pitivi] focus the new keyframe after adding a keyframe via double-clicking



commit 07ba8c615603ecfcbc40065ae8ce9f089f0ec340
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date:   Mon Aug 17 13:49:57 2009 -0700

    focus the new keyframe after adding a keyframe via double-clicking

 pitivi/ui/curve.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/curve.py b/pitivi/ui/curve.py
index 37ac7c2..ed316b9 100644
--- a/pitivi/ui/curve.py
+++ b/pitivi/ui/curve.py
@@ -97,7 +97,8 @@ class Curve(goocanvas.ItemSimple, goocanvas.Item, View, Zoomable):
             if kf is None:
                 time, value = self.xyToTimeValue(pos)
                 self._view.app.action_log.begin("add volume point")
-                interpolator.newKeyframe(time)
+                kf = interpolator.newKeyframe(time)
+                self._view.setFocusedKf(kf)
                 self._view.app.action_log.commit()
             else:
                 self._view.app.action_log.begin("remove volume point")



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]