[pitivi] timeline/elements: don't show all the keyframes when group selecting.
- From: Mathieu Duponchelle <mathieudu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] timeline/elements: don't show all the keyframes when group selecting.
- Date: Fri, 23 Aug 2013 12:52:43 +0000 (UTC)
commit 9fb9c40e6c7e494db1a3a507b1c39ea09d59c116
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date: Wed Aug 7 17:04:33 2013 +0200
timeline/elements: don't show all the keyframes when group selecting.
Optimization to workaround clutter being sluggish.
pitivi/timeline/elements.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index 70ea894..56ae89b 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -671,8 +671,6 @@ class TimelineElement(Clutter.Actor, Zoomable):
self.isSelected = isSelected
if not isSelected:
self.hideKeyframes()
- elif self.keyframedElement:
- self.showKeyframes(self.keyframedElement, self.prop)
self.marquee.props.visible = isSelected
@@ -1057,6 +1055,9 @@ class URISourceElement(TimelineElement):
self.timeline.selection.setSelection(selection, mode)
+ if self.keyframedElement:
+ self.showKeyframes(self.keyframedElement, self.prop)
+
return False
def _dragBeginCb(self, action, actor, event_x, event_y, modifiers):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]