Commit ffbf41ce authored by Bruno Coudoin's avatar Bruno Coudoin

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.
parent 62973e50
......@@ -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]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment