[pitivi] effectlist.py: Press enter on an effect apply it in the selection



commit 6f57e213bf88121f1dd4af4fc5bd0a45f9c4b3d7
Author: Thibault Saunier <tsaunier gnome org>
Date:   Sat Aug 21 03:04:43 2010 -0400

    effectlist.py: Press enter on an effect apply it in the selection

 pitivi/ui/effectlist.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/effectlist.py b/pitivi/ui/effectlist.py
index cda1569..01c2370 100644
--- a/pitivi/ui/effectlist.py
+++ b/pitivi/ui/effectlist.py
@@ -139,6 +139,7 @@ class EffectList(gtk.VBox, Loggable):
         self.searchEntry.connect ("icon-press", self.searchEntryIconClickedCb)
 
         self.treeview.connect("button-press-event", self._treeViewButtonPressEventCb)
+        self.treeview.connect("select-cursor-row", self._treeViewEnterPressEventCb)
         self.treeview.connect("motion-notify-event", self._treeViewMotionNotifyEventCb)
         self.treeview.connect("query-tooltip", self._treeViewQueryTooltipCb)
         self.treeview.connect("button-release-event", self._treeViewButtonReleaseCb)
@@ -204,6 +205,10 @@ class EffectList(gtk.VBox, Loggable):
 
         return False
 
+    def _treeViewEnterPressEventCb(self, treeview, event):
+        factory_name = self.getSelectedItems()
+        self.app.gui.clipconfig.effect_expander.addEffectToCurrentSelection(factory_name)
+
     def _treeViewButtonPressEventCb(self, treeview, event):
         chain_up = True
 



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