[pitivi: 58/65] Add a menu item to "Select Unused Media"



commit a36b346c47d447113e93793cdec19baf1e25933a
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Sat Dec 25 08:49:41 2010 -0500

    Add a menu item to "Select Unused Media"

 pitivi/ui/sourcelist.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/sourcelist.py b/pitivi/ui/sourcelist.py
index 9f03aef..8ebf643 100644
--- a/pitivi/ui/sourcelist.py
+++ b/pitivi/ui/sourcelist.py
@@ -85,6 +85,8 @@ ui = '''
             <placeholder name="SourceList" >
                 <menuitem action="ImportSources" />
                 <menuitem action="ImportSourcesFolder" />
+                <separator />
+                <menuitem action="SelectUnusedSources" />
                 <menuitem action="RemoveSources" />
                 <separator />
                 <menuitem action="InsertEnd" />
@@ -310,6 +312,9 @@ class SourceList(gtk.VBox, Loggable):
                 _("Import _Folders..."), None,
                 _("Add the contents of a folder as clips in your project"),
                 self._importSourcesFolderCb),
+            ("SelectUnusedSources", None, _("Select Unused Media"), None,
+                _("Select clips that have not been used in the project"),
+                self._selectUnusedSourcesCb),
         )
 
         # only available when selection is non-empty
@@ -383,6 +388,9 @@ class SourceList(gtk.VBox, Loggable):
     def _removeSourcesCb(self, unused_action):
         self._removeSources()
 
+    def _selectUnusedSourcesCb(self, widget):
+        pass
+
     def _insertEndCb(self, unused_action):
         self.app.action_log.begin("add clip")
         timeline = self.app.current.timeline



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