[gcompris/gcomprixogoo] Fixed animation activity, image was referenced badly.



commit ffbf41ce128e755c623406bf084ff75486e406ae
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Sat Jan 16 23:15:14 2010 +0100

    Fixed animation activity, image was referenced badly.
    
    Fixed bug:
    http://bugzilla.gnome.org/show_bug.cgi?id=607053
    Activity: /expericence/electric
    
    When I click one of the buttons at the left top corner,It reports:
    Coundn't find or load the file
    gartoon/electric/tool-select.png
    This activity is incomlete.
    Exit it and report
    the problem to the authors.

 src/electric-activity/electric.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/electric-activity/electric.py b/src/electric-activity/electric.py
index ce9f2a6..197473d 100644
--- a/src/electric-activity/electric.py
+++ b/src/electric-activity/electric.py
@@ -252,12 +252,12 @@ class Gcompris_electric:
   def assign_tool(self, newtool):
     # Deactivate old button
     item = self.tools[self.current_tool][4]
-    item.set_properties(pixbuf = gcompris.utils.load_pixmap(gcompris.skin.image_to_skin(self.tools[self.current_tool][1])))
+    item.set_properties(pixbuf = gcompris.utils.load_pixmap(self.tools[self.current_tool][1]))
 
     # Activate new button
     self.current_tool = newtool
     item = self.tools[newtool][4]
-    item.set_properties(pixbuf = gcompris.utils.load_pixmap(gcompris.skin.image_to_skin(self.tools[self.current_tool][2])))
+    item.set_properties(pixbuf = gcompris.utils.load_pixmap(self.tools[self.current_tool][2]))
     gcompris.set_cursor(self.tools[self.current_tool][3]);
 
 



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