[gcompris] Centered font on weights and adjusted size



commit c7de6cc19e328311b5429c1783c27f1d5918e925
Author: GunChleoc <fios foramnagaidhlig net>
Date:   Fri May 17 16:46:04 2013 +0100

    Centered font on weights and adjusted size

 src/scalesboard-activity/scale.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/scalesboard-activity/scale.c b/src/scalesboard-activity/scale.c
index 54b11bd..ed120b6 100644
--- a/src/scalesboard-activity/scale.c
+++ b/src/scalesboard-activity/scale.c
@@ -659,9 +659,9 @@ scale_list_add_weight(GooCanvasItem *group,
   }
 
   if (show_weight < 1000) {
-       weight_text = g_strdup_printf("%d%s", weight, show_weight ? "\n  g" : "");
+       weight_text = g_strdup_printf("%d%s", weight, show_weight ? "\ng" : "");
   } else {
-       weight_text = g_strdup_printf("%.1f\n  kg", (double)weight / 1000);
+       weight_text = g_strdup_printf("%.1f\nkg", (double)weight / 1000);
   }
 
   pixmap = gc_pixmap_load("scale/masse.png");
@@ -677,7 +677,8 @@ scale_list_add_weight(GooCanvasItem *group,
                      35,
                      -1,
                      GTK_ANCHOR_CENTER,
-                     "font", "sans 11",
+                      "alignment", PANGO_ALIGN_CENTER,
+                     "font", gc_skin_font_board_tiny,
                      "fill_color_rgba", 0xFFFFFFFFL,
                      NULL);
 


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