[pitivi] curve.py: unset focused keyframe if this keyframe is removed
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] curve.py: unset focused keyframe if this keyframe is removed
- Date: Wed, 19 Aug 2009 09:30:02 +0000 (UTC)
commit 15b8c60071b28bd0ad3a87b262d3b7757c2a1f40
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date: Mon Aug 17 13:55:58 2009 -0700
curve.py: unset focused keyframe if this keyframe is removed
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 a1d90e9..6a7f173 100644
--- a/pitivi/ui/curve.py
+++ b/pitivi/ui/curve.py
@@ -127,6 +127,7 @@ class Curve(goocanvas.ItemSimple, goocanvas.Item, View, Zoomable):
self.element = element
self.props.pointer_events = goocanvas.EVENTS_STROKE
self.interpolator = interpolator
+ self._focused_kf = None
self.normal()
## properties
@@ -160,6 +161,8 @@ class Curve(goocanvas.ItemSimple, goocanvas.Item, View, Zoomable):
def keyframeRemoved(self, unused_interpolator, keyframe):
if keyframe in self.keyframes:
del self.keyframes[keyframe]
+ if keyframe is self._focused_kf:
+ self._focused_kf = None
self.changed(False)
@handler(interpolator, "keyframe-added")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]