[pitivi: 2/4] ui: fix effects expander behavior, bug #656581



commit c7f23fff7be4aa4dcd678266588ded3524c9c65b
Author: Lubosz Sarnecki <lubosz gmail com>
Date:   Mon Aug 15 16:38:11 2011 +0200

    ui: fix effects expander behavior, bug #656581
    
    the expander was not connected properly and not beeing set back sensitive.

 pitivi/ui/clipproperties.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/clipproperties.py b/pitivi/ui/clipproperties.py
index 4d11369..5bc8f85 100644
--- a/pitivi/ui/clipproperties.py
+++ b/pitivi/ui/clipproperties.py
@@ -241,6 +241,7 @@ class EffectProperties(gtk.Expander, gtk.HBox):
         self._vcontent.show()
         self.set_expanded(True)
         self.set_label(_("Effects"))
+        self.connect('notify::expanded', self._expandedCb)
 
     def _newProjectLoadedCb(self, app, project):
         self.clip_properties.project = project
@@ -274,6 +275,7 @@ class EffectProperties(gtk.Expander, gtk.HBox):
             for timeline_object in self.timeline_objects:
                 timeline_object.connect("track-object-added", self._trackObjectAddedCb)
                 timeline_object.connect("track-object-removed", self._trackRemovedRemovedCb)
+            self.set_sensitive(True)
         else:
             self.timeline_objects = []
             self.set_sensitive(False)



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