[gcalctool/gnome-3-0] Limit leading digits in converter to 6



commit caa6adc238908bdc57ea69dbeac3b582ebad980a
Author: Robert Ancell <robert ancell canonical com>
Date:   Thu Apr 21 18:36:03 2011 +1000

    Limit leading digits in converter to 6

 src/unit.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/unit.c b/src/unit.c
index 2658883..f7c0277 100644
--- a/src/unit.c
+++ b/src/unit.c
@@ -208,4 +208,5 @@ unit_init(Unit *unit)
 {
     unit->priv = G_TYPE_INSTANCE_GET_PRIVATE(unit, unit_get_type(), UnitPrivate);
     unit->priv->serializer = mp_serializer_new(MP_DISPLAY_FORMAT_AUTOMATIC, 10, 2);
+    mp_serializer_set_leading_digits(unit->priv->serializer, 6);
 }



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