[pitivi] widgets: remove ResolutionWidget as grep shows it is unused.



commit 7aa849383666d9e0e270b95a802c0e14b35fc5a1
Author: Mathieu Duponchelle <mduponchelle1 gmail com>
Date:   Wed Dec 4 16:44:13 2013 +0100

    widgets: remove ResolutionWidget as grep shows it is unused.

 pitivi/utils/widgets.py |   31 -------------------------------
 1 files changed, 0 insertions(+), 31 deletions(-)
---
diff --git a/pitivi/utils/widgets.py b/pitivi/utils/widgets.py
index 8cc4aa9..3bbed51 100644
--- a/pitivi/utils/widgets.py
+++ b/pitivi/utils/widgets.py
@@ -570,37 +570,6 @@ class FontWidget(Gtk.FontButton, DynamicWidget):
         return self.get_font_name()
 
 
-class ResolutionWidget(Gtk.HBox, DynamicWidget):
-
-    def __init__(self, default=None):
-        Gtk.HBox.__init__(self)
-        DynamicWidget.__init__(self, default)
-        self.props.spacing = SPACING
-
-        self.dwidth = 0
-        self.dheight = 0
-        self.dwidthWidget = NumericWidget(lower=0)
-        self.dheightWidget = NumericWidget(lower=0)
-        self.pack_start(self.dwidthWidget, True, True, 0)
-        self.pack_start(Gtk.Label("x", True, True, 0))
-        self.pack_start(self.dheightWidget, True, True, 0)
-        self.setWidgetValue((320, 240))
-        self.show_all()
-
-    def connectValueChanged(self, callback, *args):
-        self.dwidthWidget.connectValueChanged(callback, *args)
-        self.dheightWidget.connectValueChanged(callback, *args)
-
-    def setWidgetValue(self, value):
-        width, height = value
-
-        self.dwidthWidget.setWidgetValue(width)
-        self.dheightWidget.setWidgetValue(height)
-
-    def getWidgetValue(self):
-        return self.dwidthWidget.getWidgetValue(),\
-            self.dheightWidget.getWidgetValue()
-
 if __name__ == '__main__':
 
     def valueChanged(unused_widget, widget, target):


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