[pitivi] medialibrary: Remove unused _trackElementAddedCb method
- From: Mathieu Duponchelle <mathieudu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] medialibrary: Remove unused _trackElementAddedCb method
- Date: Tue, 4 Feb 2014 21:49:26 +0000 (UTC)
commit 06e7bef5aa5e0b1725448bf9a37be2964bfb0400
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sun Dec 22 01:48:11 2013 +0100
medialibrary: Remove unused _trackElementAddedCb method
pitivi/medialibrary.py | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index 4c8bce2..ddb6eaa 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -338,23 +338,6 @@ class MediaLibraryWidget(Gtk.VBox, Loggable):
def _insertEndCb(self, unused_action):
self.app.gui.timeline_ui.insertEnd(self.getSelectedAssets())
- def _trackElementAddedCb(self, source, unused_track_element):
- """ After an object has been added to the first track, position it
- correctly and request the next source to be processed. """
- timeline = self.app.current_project.timeline
- layer = timeline.get_layers()[0] # FIXME Get the longest layer
-
- # Handle the case where we just inserted the first clip
- if len(layer.get_clips()) == 1:
- source.props.start = 0
- else:
- source.props.start = timeline.props.duration
-
- # We only need one TrackElement to estimate the new duration.
- # Process the next source.
- source.disconnect_by_func(self._trackElementAddedCb)
- self._insertNextSource()
-
def _searchEntryChangedCb(self, entry):
# With many hundred clips in an iconview with dynamic columns and
# ellipsizing, doing needless searches is very expensive.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]