[gcompris/gcomprixogoo] Fixed broken image display for the left menu icons.



commit 9897a893ff1748d099c36f5671c7802639bc3311
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Sun Jun 21 23:58:07 2009 +0200

    Fixed broken image display for the left menu icons.

 src/administration-activity/admin/module.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/administration-activity/admin/module.py b/src/administration-activity/admin/module.py
index 5520e2a..31d8b95 100644
--- a/src/administration-activity/admin/module.py
+++ b/src/administration-activity/admin/module.py
@@ -70,17 +70,17 @@ class Module:
         self.select_item.connect("button_press_event", callback, self)
 
         y1 += 5
-        itemimg = goocanvas.Image(
+
+        itemimg = goocanvas.Svg(
             parent = self.root_select_item,
-            pixbuf = gcompris.utils.load_pixmap("administration/config_" +
+            svg_handle = gcompris.utils.load_svg("administration/config_" +
                                                 self.module_name +
-                                                ".svgz"),
-            x = x,
-            y = y1,
+                                                 ".svgz")
             )
+
         bounds = itemimg.get_bounds()
         centered_x = x - (bounds.x2 - bounds.x1)/2
-        itemimg.props.x = centered_x
+        itemimg.translate(centered_x, y1);
         itemimg.connect("button_press_event", callback, self)
         gcompris.utils.item_focus_init(itemimg, None)
 



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