[gcompris: 56/111] land_safe, minor issue (gtk erro message), it is not allowed to lower items in different groups.



commit 98368fb649e80644336d68ed4482bd50c317851f
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Fri Jul 13 00:39:47 2012 +0200

    land_safe, minor issue (gtk erro message), it is not allowed to lower items in different groups.

 src/land_safe-activity/land_safe.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/land_safe-activity/land_safe.py b/src/land_safe-activity/land_safe.py
index 993bcb1..f5e2bf6 100644
--- a/src/land_safe-activity/land_safe.py
+++ b/src/land_safe-activity/land_safe.py
@@ -188,6 +188,7 @@ class Spaceship:
     self.level = level
     self.flame_rootitem = goocanvas.Group(parent = rootitem)
     self.land_rootitem = land_rootitem
+    self.land_rootitem.lower(self.flame_rootitem)
     x = gcompris.BOARD_WIDTH/2
     y = 10
 
@@ -207,7 +208,6 @@ class Spaceship:
       width = 145 - (self.level * 12),
       x = self.land_x,
       y = 365)
-    self.landing_red.lower(self.flame_rootitem)
     self.landing_red.props.visibility = goocanvas.ITEM_INVISIBLE
 
     self.landing_green = goocanvas.Image(
@@ -216,7 +216,6 @@ class Spaceship:
       width = 145 - (self.level * 12),
       x = self.land_x,
       y = 365)
-    self.landing_green.lower(self.flame_rootitem)
 
     # Load spaceship
     pixbuf = gcompris.utils.load_pixmap("land_safe/rocket.png")



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