[pitivi] ui/effectsconfiguration.py: Always add a ScrolledWindow int effect configuration UI



commit 47864e8fbaec006c292d239ab13e01699b523ae3
Author: Thibault Saunier <tsaunier gnome org>
Date:   Fri Sep 3 16:08:47 2010 +0200

    ui/effectsconfiguration.py: Always add a ScrolledWindow int effect configuration UI

 pitivi/ui/effectsconfiguration.py |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/pitivi/ui/effectsconfiguration.py b/pitivi/ui/effectsconfiguration.py
index 88e43e9..3e48940 100644
--- a/pitivi/ui/effectsconfiguration.py
+++ b/pitivi/ui/effectsconfiguration.py
@@ -53,12 +53,11 @@ class EffectsPropertiesHandling:
                 effect_set_ui.setElement(effect, ignore=PROPS_TO_IGNORE,
                                                    default_btn=True, use_element_props=True)
                 nb_rows = effect_set_ui.get_children()[0].get_property('n-rows')
-                if nb_rows > 2:
-                    effect_configuration_ui = gtk.ScrolledWindow()
-                    effect_configuration_ui.add_with_viewport(effect_set_ui)
-                    self.cache_dict[effect] = effect_configuration_ui
-                else:
-                    self.cache_dict[effect] = effect_set_ui
+                effect_configuration_ui = gtk.ScrolledWindow()
+                effect_configuration_ui.add_with_viewport(effect_set_ui)
+                effect_configuration_ui.set_policy(gtk.POLICY_AUTOMATIC,
+                                                   gtk.POLICY_AUTOMATIC)
+                self.cache_dict[effect] = effect_configuration_ui
                 self._connectAllWidgetCbs(effect_set_ui, effect)
 
         effect_set_ui = self._getUiToSetEffect(effect)



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