[pitivi] Re enables ROLL edition mode
- From: Jean-François Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Re enables ROLL edition mode
- Date: Wed, 24 Apr 2013 18:04:11 +0000 (UTC)
commit f486fb72bfde1c7ae334171589a97dde918c5b13
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date: Thu Apr 18 21:43:45 2013 +0200
Re enables ROLL edition mode
pitivi/timeline/elements.py | 1 +
pitivi/timeline/timeline.py | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index 96c2701..33f2048 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -300,6 +300,7 @@ class TrimHandle(Clutter.Texture):
delta_x = coords[0] - self.dragBeginStartX
new_start = self._dragBeginStart + Zoomable.pixelToNs(delta_x)
+ self._context.setMode(self.timelineElement.timeline._container.getEditionMode(isAHandle=True))
self._context.editTo(new_start,
self.timelineElement.bElement.get_parent().get_layer().get_priority())
return False
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 708c599..a57d1c8 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -627,6 +627,8 @@ class Timeline(Gtk.VBox, Zoomable):
return GES.EditMode.EDIT_RIPPLE
if isAHandle and self.controlMask:
return GES.EditMode.EDIT_ROLL
+ elif isAHandle:
+ return GES.EditMode.EDIT_TRIM
return GES.EditMode.EDIT_NORMAL
# Internal API
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]