[pitivi] Better use of GstElementSettingsWidget
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Better use of GstElementSettingsWidget
- Date: Wed, 22 Sep 2010 13:42:06 +0000 (UTC)
commit d818674fec37d93e9c6658ef979a93699d22f217
Author: Thibault Saunier <tsaunier gnome org>
Date: Sun Jul 18 22:20:55 2010 -0400
Better use of GstElementSettingsWidget
pitivi/ui/effectsconfiguration.py | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/pitivi/ui/effectsconfiguration.py b/pitivi/ui/effectsconfiguration.py
index 08958f6..435fb6a 100644
--- a/pitivi/ui/effectsconfiguration.py
+++ b/pitivi/ui/effectsconfiguration.py
@@ -62,14 +62,13 @@ class EffectsPropertiesHandling:
def _connectAllWidgetCbs(self, effect_configuration_ui, effect):
for prop, widget in effect_configuration_ui.properties.iteritems():
if type(widget) in [gtk.SpinButton]:
- widget.connect("value-changed", self._onValueChangedCb, prop.name, effect, widget.get_value)
- elif type(widget) in [gtk.Entry]:
- widget.connect("changed", self._onValueChangedCb, prop.name, effect, widget.get_text)
- elif type(widget) in [gtk.ComboBox]:
- widget.connect("changed", self._onValueChangedCb, prop.name, effect, widget.get_active_text)
+ widget.connect("value-changed", self._onValueChangedCb)
+ elif type(widget) in [gtk.Entry, gtk.ComboBox]:
+ widget.connect("changed", self._onValueChangedCb)
elif type(widget) in [gtk.CheckButton]:
- widget.connect("clicked", self._onValueChangedCb, prop.name, effect, widget.get_active)
+ widget.connect("clicked", self._onValueChangedCb)
- def _onValueChangedCb(self, widget, prop, element, function):
- self.current_config_ui.element.set_property(prop, function())
+ def _onValueChangedCb(self, widget):
+ for prop, value in self.current_config_ui.getSettings().iteritems():
+ self.current_config_ui.element.set_property(prop, value)
self._flushSeekVideo()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]