[gcompris/gcomprixogoo] Fixed lightsoff. We missed an erase of the background when exitingthe activity.



commit a69507bff0500ef92bacbc087b9317f242b79250
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Wed Mar 3 21:29:14 2010 +0100

    Fixed lightsoff. We missed an erase of the background when exitingthe activity.

 src/lightsoff-activity/lightsoff.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lightsoff-activity/lightsoff.py b/src/lightsoff-activity/lightsoff.py
index a1af557..d5b9bb9 100644
--- a/src/lightsoff-activity/lightsoff.py
+++ b/src/lightsoff-activity/lightsoff.py
@@ -556,7 +556,7 @@ class Gcompris_lightsoff:
       # only have to kill it. The canvas deletes all the items it contains
       # automaticaly.
       self.rootitem =  \
-          goocanvas.Group(parent = self.gcomprisBoard.canvas.get_root_item())
+          goocanvas.Group(parent = self.backroot)
 
       svghandle = gcompris.utils.load_svg("lightsoff/onoff.svgz")
       iwidth = svghandle.props.width



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