[pitivi] effectsconfiguration: fix aspect ratio crop ui
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] effectsconfiguration: fix aspect ratio crop ui
- Date: Sat, 13 Aug 2011 13:26:45 +0000 (UTC)
commit 574c1b45651cfcf49733e44b142d707c2a04338d
Author: Lubosz Sarnecki <lubosz gmail com>
Date: Fri Aug 12 22:44:40 2011 +0200
effectsconfiguration: fix aspect ratio crop ui
also fix typo
pitivi/ui/effectsconfiguration.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/effectsconfiguration.py b/pitivi/ui/effectsconfiguration.py
index 0e92871..0291de3 100644
--- a/pitivi/ui/effectsconfiguration.py
+++ b/pitivi/ui/effectsconfiguration.py
@@ -38,9 +38,10 @@ class EffectsPropertiesHandling:
def getEffectConfigurationUI(self, effect):
"""
Permit to get a configuration GUI for the effect
- @param effect: The effect for which whe want the configuration UI
+ @param effect: The effect for which we want the configuration UI
@type effect: C{gst.Element}
"""
+
if effect not in self.cache_dict:
#Here we should handle special effects configuration UI
effect_set_ui = GstElementSettingsWidget()
@@ -72,7 +73,7 @@ class EffectsPropertiesHandling:
return conf_ui
def _postConfiguration(self, effect, effect_set_ui):
- if 'aspectratiocrop' in effect.get_name():
+ if 'GstAspectRatioCrop' in effect.get_path_string():
for widget in effect_set_ui.get_children()[0].get_children():
if isinstance(widget, FractionWidget):
widget.addPresets(["4:3", "5:4", "9:3", "16:9", "16:10"])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]