[pitivi] ui/clipproperties.py: Use the active property of TrackObject instead of the gnl_object directly



commit 25f619c6c49bc8c150d33a7500fcfe527d631158
Author: Thibault Saunier <tsaunier gnome org>
Date:   Wed Sep 1 15:06:21 2010 +0200

    ui/clipproperties.py: Use the active property of TrackObject instead of the gnl_object directly

 pitivi/ui/clipproperties.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/clipproperties.py b/pitivi/ui/clipproperties.py
index 8bf576d..fc85aec 100644
--- a/pitivi/ui/clipproperties.py
+++ b/pitivi/ui/clipproperties.py
@@ -303,8 +303,7 @@ class EffectProperties(gtk.HBox):
         iter = self.storemodel.get_iter(path)
         track_effect = self.storemodel.get_value(iter, COL_TRACK_EFFECT)
         self.app.action_log.begin("change active state")
-        activated = track_effect.gnl_object.get_property("active")
-        track_effect.gnl_object.set_property("active", not activated)
+        track_effect.active = not track_effect.active
         self.app.action_log.commit()
 
     #def _expandedCb(self, expander, params):



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