[gcompris] administration, layout improvement



commit e959e714dcfa77270ee9760819560e7681ecd1d5
Author: Bruno Coudoin <bcoudoin gcompris net>
Date:   Thu Nov 14 01:42:01 2013 +0100

    administration, layout improvement
    
    the module labels was too large. replaced them by
    tooltips.

 src/administration-activity/admin/module.py |   17 ++---------------
 1 files changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/src/administration-activity/admin/module.py b/src/administration-activity/admin/module.py
index c03765a..70d9c42 100644
--- a/src/administration-activity/admin/module.py
+++ b/src/administration-activity/admin/module.py
@@ -75,7 +75,8 @@ class Module:
             parent = self.root_select_item,
             svg_handle = gcompris.utils.load_svg("administration/config_" +
                                                 self.module_name +
-                                                 ".svgz")
+                                                 ".svgz"),
+            tooltip = _(self.module_label)
             )
 
         bounds = itemimg.get_bounds()
@@ -86,20 +87,6 @@ class Module:
 
         y1 += bounds.y2 - bounds.y1 + 3
 
-        item = goocanvas.Text(
-            parent = self.root_select_item,
-            text=_(self.module_label),
-            font = gcompris.skin.get_font("gcompris/board/minuscule"),
-            x = centered_x,
-            y = y1,
-            fill_color="black"
-            )
-        bounds = item.get_bounds()
-        centered_x = x - (bounds.x2 - bounds.x1)/2
-        item.props.x = centered_x
-        item.connect("button_press_event", callback, self)
-        gcompris.utils.item_focus_init(item, itemimg)
-
     def get_module_name(self):
         return self.module_name
 


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