[pitivi/ges: 58/287] clipproperties: Hide again hidden effects
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 58/287] clipproperties: Hide again hidden effects
- Date: Thu, 15 Mar 2012 16:30:42 +0000 (UTC)
commit a8bde32bf1c415e366fe5d50d0b01a459dfc21db
Author: Thibault Saunier <thibault saunier collabora com>
Date: Thu Oct 6 16:45:17 2011 -0300
clipproperties: Hide again hidden effects
pitivi/ui/clipproperties.py | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
---
diff --git a/pitivi/ui/clipproperties.py b/pitivi/ui/clipproperties.py
index 84c9aec..604e9ae 100644
--- a/pitivi/ui/clipproperties.py
+++ b/pitivi/ui/clipproperties.py
@@ -25,7 +25,6 @@ Class handling the midle pane
import gtk
import pango
import dnd
-import gst
import os
from gettext import gettext as _
@@ -389,16 +388,18 @@ class EffectProperties(gtk.Expander, gtk.HBox):
obj = self.timeline_objects[0].get_timeline_object()
for track_effect in obj.get_top_effects():
- to_append = [track_effect.get_property("active")]
- if track_effect.get_track().get_caps().to_string() == "audio/x-raw-int; audio/x-raw-float":
- to_append.append("Audio")
- else:
- to_append.append("Video")
-
- to_append.append(track_effect.get_property("bin-description"))
- to_append.append(track_effect)
-
- self.storemodel.append(to_append)
+ if not track_effect.factory.effectname in HIDDEN_EFFECTS:
+ to_append = [track_effect.get_property("active")]
+ #FIXME ugly GES -> use TrackType
+ if track_effect.get_track().get_caps().to_string() == "audio/x-raw-int; audio/x-raw-float":
+ to_append.append("Audio")
+ else:
+ to_append.append("Video")
+
+ to_append.append(track_effect.get_property("bin-description"))
+ to_append.append(track_effect)
+
+ self.storemodel.append(to_append)
def _showInfoBar(self):
if self._info_bar is None:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]