[pitivi/ges: 19/287] Implement the delete selected function
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 19/287] Implement the delete selected function
- Date: Thu, 15 Mar 2012 16:27:25 +0000 (UTC)
commit b6381f851d447dcc4b155e8b916eb50ed10aef77
Author: Mathieu Duponchelle <seeed laposte net>
Date: Sun Aug 28 21:13:12 2011 +0200
Implement the delete selected function
pitivi/ui/timeline.py | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index a1db48e..e635842 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -686,7 +686,19 @@ class Timeline(gtk.Table, Loggable, Zoomable):
def deleteSelected(self, unused_action):
if self.timeline:
self.app.action_log.begin("delete clip")
- self.timeline.deleteSelection()
+ for track_object in self.timeline.selected:
+ obj = track_object.get_timeline_object()
+ obj.release_track_object(track_object)
+ track = track_object.get_track()
+ track.remove_object(track_object)
+ remove = True
+ for tck_obj in obj.get_track_objects():
+ if isinstance (tck_obj, ges.TrackSource):
+ remove = False
+ if remove:
+ lyr = obj.get_layer()
+ lyr.remove_object(obj)
+ print "removed"
self.app.action_log.commit()
def unlinkSelected(self, unused_action):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]