[pitivi] effects: Make effect property setting working again
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] effects: Make effect property setting working again
- Date: Mon, 14 Jan 2013 12:37:33 +0000 (UTC)
commit c00930d7c2177d6747fa8fb0c671d8e81875698f
Author: Thibault Saunier <thibault saunier collabora com>
Date: Wed Dec 19 11:11:38 2012 -0300
effects: Make effect property setting working again
pitivi/utils/widgets.py | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/utils/widgets.py b/pitivi/utils/widgets.py
index 3ae184c..783d8e8 100644
--- a/pitivi/utils/widgets.py
+++ b/pitivi/utils/widgets.py
@@ -83,7 +83,7 @@ class DefaultWidget(Gtk.Label, DynamicWidget):
pass
def setWidgetValue(self, value):
- self.set_text(value)
+ self.set_text(str(value))
def getWidgetValue(self):
return self.get_text()
@@ -831,12 +831,17 @@ class GstElementSettingsWidget(Gtk.VBox, Loggable):
y = 0
for prop in props:
- if (not prop.flags & GObject.PARAM_WRITABLE
- or not prop.flags & GObject.PARAM_READABLE):
+ # We do not know how to work with GObjects, so blacklist
+ # them to avoid noise in the UI
+ if (not prop.flags & GObject.PARAM_WRITABLE or
+ not prop.flags & GObject.PARAM_READABLE or
+ GObject.type_is_a(prop.value_type, GObject.Object)):
continue
if is_effect:
- prop_value = self.element.get_child_property(prop.name)
+ result, prop_value = self.element.get_child_property(prop.name)
+ if result is False:
+ self.debug("Could not get property %s value", prop.name)
else:
if use_element_props:
prop_value = self.element.get_property(prop.name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]