[pitivi] Adds a litle searchbox/combobox to the effect list



commit 810b553ff795a9044f4cea4486877b1dac6e469e
Author: Thibault Saunier <tsaunier gnome org>
Date:   Fri Jun 18 15:40:13 2010 -0400

    Adds a litle searchbox/combobox to the effect list

 pitivi/ui/effectlist.py |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/effectlist.py b/pitivi/ui/effectlist.py
index 145c944..7abb17c 100644
--- a/pitivi/ui/effectlist.py
+++ b/pitivi/ui/effectlist.py
@@ -68,6 +68,13 @@ class EffectList(gtk.VBox, Loggable):
         self._dragY = 0
         self._ignoreRelease = False
 
+        #Searchbox and combobox
+        self.filters = gtk.HBox()
+        self.search_box = gtk.Entry()
+        self.combobox = gtk.combo_box_new_text()
+        self.filters.pack_start(self.combobox, expand=False, padding=0)
+        self.filters.pack_start(self.search_box, expand=True, padding=0)
+
         # Store
         # icon, icon, infotext, objectfactory
         self.storemodel = gtk.ListStore(gtk.gdk.Pixbuf, gtk.gdk.Pixbuf,
@@ -121,10 +128,11 @@ class EffectList(gtk.VBox, Loggable):
                               self._dndDragBeginCb)
         self.treeview.connect("drag_data_get", self._dndDataGetCb)
 
-        self.pack_start(self.treeview_scrollwin)
+        self.pack_start(self.filters, expand=False)
+        self.pack_end(self.treeview_scrollwin, expand=True)
         #Get all available effects
         self._addFactories(self._getEffects())
-        self.treeview_scrollwin.show_all()
+        self.show_all()
 
     def _addFactories(self, effects):
         #TODO find a way to associate an icon to each effect
@@ -272,6 +280,7 @@ class VideoEffectList (EffectList):
 
     def _getEffects(self):
         return self.app.effects.simple_video
+
     def _getDndTuple(self):
         return  [dnd.VIDEO_EFFECT_TUPLE, dnd.EFFECT_TUPLE]
 



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