[pitivi: 15/18] Connect the modelFilter to the iconview



commit 9057680059edf14cf425c1dd146a3e4802840094
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Sat Dec 25 22:27:28 2010 -0500

    Connect the modelFilter to the iconview

 pitivi/ui/sourcelist.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/ui/sourcelist.py b/pitivi/ui/sourcelist.py
index c3a2213..01cd83d 100644
--- a/pitivi/ui/sourcelist.py
+++ b/pitivi/ui/sourcelist.py
@@ -168,10 +168,10 @@ class SourceList(gtk.VBox, Loggable):
         searchEntry.connect("icon-press", self.searchEntryIconClickedCb)
         self.search_hbox.pack_start(searchLabel, expand=False)
         self.search_hbox.pack_end(searchEntry, expand=True)
-        # Filtering model for the search box
+        # Filtering model for the search box.
+        # Use this instead of using self.storemodel directly
         self.modelFilter = self.storemodel.filter_new()
         self.modelFilter.set_visible_func(self._setRowVisible, data=searchEntry)
-        #self.treeview.set_model(self.modelFilter)
 
         # TreeView
         # Displays icon, name, type, length
@@ -215,7 +215,7 @@ class SourceList(gtk.VBox, Loggable):
         namecol.add_attribute(txtcell, "markup", COL_LENGTH)
 
         # IconView
-        self.iconview = gtk.IconView(self.storemodel)
+        self.iconview = gtk.IconView(self.modelFilter)
         self.iconview_scrollwin.add(self.iconview)
         self.iconview.connect("button-press-event", self._iconViewButtonPressEventCb)
         self.iconview.connect("selection-changed", self._viewSelectionChangedCb)



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