[pitivi] pitivi: Do not serialize the selection group
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] pitivi: Do not serialize the selection group
- Date: Sat, 15 Nov 2014 10:34:11 +0000 (UTC)
commit 04a8b10830db5cdb7682ab0c1fff9d93e45047d6
Author: Thibault Saunier <tsaunier gnome org>
Date: Sat Nov 1 10:56:50 2014 +0100
pitivi: Do not serialize the selection group
We do not want it to be serialized, it is really just a temporary
group to help us manage several elements as one
pitivi/timeline/elements.py | 2 +-
pitivi/timeline/timeline.py | 15 +++++++++------
2 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index 4e3cb11..4766972 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -1057,7 +1057,7 @@ class URISourceElement(TimelineElement):
mode = UNSELECT
elif not self.bElement.selected:
GES.Container.ungroup(self.timeline.current_group, False)
- self.timeline.current_group = GES.Group()
+ self.timeline.createSelectionGroup()
self.timeline.current_group.add(
self.bElement.get_toplevel_parent())
self.timeline._container.gui.switchContextTab(self.bElement)
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 59b9bfe..edd56a4 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -102,7 +102,7 @@ class TimelineStage(Clutter.ScrollActor, Zoomable, Loggable):
Loggable.__init__(self)
self.bTimeline = None
self._project = None
- self.current_group = GES.Group()
+ self.createSelectionGroup()
self._container = container
self.allowSeek = True
@@ -140,6 +140,10 @@ class TimelineStage(Clutter.ScrollActor, Zoomable, Loggable):
# Public API
+ def createSelectionGroup(self):
+ self.current_group = GES.Group()
+ self.current_group.props.serialize = False
+
def setProject(self, project):
"""
Connects with the GES.Timeline holding the project.
@@ -545,7 +549,7 @@ class TimelineStage(Clutter.ScrollActor, Zoomable, Loggable):
if self.current_group:
GES.Container.ungroup(self.current_group, False)
- self.current_group = GES.Group()
+ self.createSelectionGroup()
self.dragBeginStartX = event.x - CONTROL_WIDTH + self._scroll_point.x
self.dragBeginStartY = event.y + self._scroll_point.y
@@ -571,7 +575,7 @@ class TimelineStage(Clutter.ScrollActor, Zoomable, Loggable):
x, y, width, height = self._translateToTimelineContext(event)
elements = self._getElementsInRegion(x, y, width, height)
- self.current_group = GES.Group()
+ self.createSelectionGroup()
for element in elements:
self.current_group.add(element)
selection = [child for child in self.current_group.get_children(True)
@@ -1189,7 +1193,7 @@ class TimelineContainer(Gtk.Grid, Zoomable, Loggable):
GES.Container.ungroup(container, False)
self.timeline.bTimeline.commit()
- self.timeline.current_group = GES.Group()
+ self.timeline.createSelectionGroup()
self.app.action_log.commit()
self.bTimeline.commit()
@@ -1211,8 +1215,7 @@ class TimelineContainer(Gtk.Grid, Zoomable, Loggable):
if containers:
group = GES.Container.group(list(containers))
-
- self.timeline.current_group = GES.Group()
+ self.timeline.createSelectionGroup()
self.bTimeline.commit()
self.app.action_log.commit()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]