[pitivi] focus the new keyframe after adding a keyframe via double-clicking
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] focus the new keyframe after adding a keyframe via double-clicking
- Date: Wed, 19 Aug 2009 09:30:17 +0000 (UTC)
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]