[pitivi/ges: 272/287] utils/widgets.py: Fix the creation of property widgets for effects



commit 124e1afc55a94baf837bd0223c95b923ae96f6fb
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Sun Feb 12 21:02:26 2012 -0500

    utils/widgets.py: Fix the creation of property widgets for effects

 pitivi/utils/widgets.py |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/pitivi/utils/widgets.py b/pitivi/utils/widgets.py
index 250b163..f97bb32 100644
--- a/pitivi/utils/widgets.py
+++ b/pitivi/utils/widgets.py
@@ -825,9 +825,6 @@ class GstElementSettingsWidget(gtk.VBox, Loggable):
                 continue
 
             if is_effect:
-                label = gtk.Label(prop.nick + ":")
-                label.set_alignment(0.0, 0.5)
-                table.attach(label, 0, 1, y, y + 1, xoptions=gtk.FILL, yoptions=gtk.FILL)
                 prop_value = self.element.get_child_property(prop.name)
             else:
                 if use_element_props:
@@ -845,12 +842,12 @@ class GstElementSettingsWidget(gtk.VBox, Loggable):
                 table.attach(label, 0, 1, y, y + 1, xoptions=gtk.FILL, yoptions=gtk.FILL)
                 table.attach(widget, 1, 2, y, y + 1, yoptions=gtk.FILL)
 
-            if is_effect:
-                table.attach(widget, 1, 2, y, y + 1, yoptions=gtk.FILL)
-            elif hasattr(prop, 'blurb'):
+            if hasattr(prop, 'blurb'):
                 widget.set_tooltip_text(prop.blurb)
 
             self.properties[prop] = widget
+
+            # The "reset to default" button associated with this property
             if default_btn:
                 button = self._getResetToDefaultValueButton(prop, widget)
                 table.attach(button, 2, 3, y, y + 1, xoptions=gtk.FILL, yoptions=gtk.FILL)



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