[pitivi] widgets: Implement the DefaultWidget.setToDefault method
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] widgets: Implement the DefaultWidget.setToDefault method
- Date: Mon, 15 Dec 2014 17:18:50 +0000 (UTC)
commit a6ea514a1359e18c90df2d3c881c4a75aed1f176
Author: Thibault Saunier <tsaunier gnome org>
Date: Mon Dec 15 18:15:50 2014 +0100
widgets: Implement the DefaultWidget.setToDefault method
Avoiding to raise AttributeError: 'DefaultWidget' object has no
attribute 'setWidgetToDefault' if the user resets default setting on an
element that does has a property type we do not properly handle
pitivi/utils/widgets.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/utils/widgets.py b/pitivi/utils/widgets.py
index 157e38c..ea59ee4 100644
--- a/pitivi/utils/widgets.py
+++ b/pitivi/utils/widgets.py
@@ -83,6 +83,9 @@ class DefaultWidget(Gtk.Label):
def __init__(self, *unused, **unused_kwargs):
Gtk.Label.__init__(self, _("Implement Me"))
+ def setWidgetToDefault(self):
+ pass
+
class TextWidget(Gtk.HBox, DynamicWidget):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]