[pitivi] ui.sourcelist: Fix for changes in sourcelist API



commit 4b4c73a7f875b583bd4c269b4b75c8da0a7dbfd7
Author: Edward Hervey <bilboed bilboed com>
Date:   Wed Jun 24 15:50:29 2009 +0200

    ui.sourcelist: Fix for changes in sourcelist API

 pitivi/ui/sourcelist.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/sourcelist.py b/pitivi/ui/sourcelist.py
index d4c1d47..eb73d8f 100644
--- a/pitivi/ui/sourcelist.py
+++ b/pitivi/ui/sourcelist.py
@@ -321,7 +321,7 @@ class SourceList(gtk.VBox, Loggable):
         sources = self.app.current.sources
         start = timeline.duration
         for uri in self.getSelectedItems():
-            factory = sources[uri]
+            factory = sources.getUri(uri)
             source = timeline.addSourceFactory(factory)
             source.setStart(start)
             start += source.duration
@@ -551,7 +551,7 @@ class SourceList(gtk.VBox, Loggable):
         selected.sort(reverse=True)
         for path in selected:
             uri = model[path][COL_URI]
-            del self.app.current.sources[uri]
+            self.app.removeUri(uri)
 
     ## UI Button callbacks
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]