[pitivi/ges: 228/287] Add a method to remove all instances of a timeline object
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 228/287] Add a method to remove all instances of a timeline object
- Date: Thu, 15 Mar 2012 16:45:00 +0000 (UTC)
commit 3cfab2e8fe82fbbb47ec6fc3e419724c665bd872
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Tue Jan 17 09:10:05 2012 -0500
Add a method to remove all instances of a timeline object
pitivi/timeline/timeline.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 0c9f802..cb819dc 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -920,6 +920,14 @@ class Timeline(gtk.Table, Loggable, Zoomable):
return layers
+ def purgeObject(self, uri):
+ """Remove all instances of a clip from the timeline."""
+ layers = self.timeline.get_layers()
+ for layer in layers:
+ for tlobj in layer.get_objects():
+ if uri == tlobj.get_uri():
+ layer.remove_object(tlobj)
+
def _create_temp_source(self):
infos = self._factories
layer = self._ensureLayer()[0]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]