[pitivi] dynamic.py: set at least two decimal places when value type is a float



commit 9d5914f1631cd3cbf5c4a1b91f70cd312bd4299d
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date:   Mon Oct 12 14:53:23 2009 -0700

    dynamic.py: set at least two decimal places when value type is a float

 pitivi/ui/dynamic.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/dynamic.py b/pitivi/ui/dynamic.py
index 6a59672..fe25d1e 100644
--- a/pitivi/ui/dynamic.py
+++ b/pitivi/ui/dynamic.py
@@ -167,6 +167,7 @@ class NumericWidget(gtk.HBox):
             minimum, maximum = (gobject.G_MINDOUBLE, gobject.G_MAXDOUBLE)
             step = 0.00001
             page = 0.01
+            self.spinner.props.digits = 2
         if self.lower is not None:
             minimum = self.lower
         if self.upper is not None:



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