[gcompris/gcomprixo] Fixed missing redraw.svg in the all in one bundle.



commit 797a450c35931773224f87efd0cc38e279fcdf69
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Wed Jun 3 08:44:51 2009 +0200

    Fixed missing redraw.svg in the all in one bundle.
    Fixed a potential (low occurence) python tracaback on undefined
    event.x.
---
 src/redraw-activity/Makefile.am             |    2 +-
 src/redraw-activity/redraw.py               |    4 ++--
 src/redraw_symmetrical-activity/Makefile.am |    4 +---
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/redraw-activity/Makefile.am b/src/redraw-activity/Makefile.am
index d514ee6..a470714 100644
--- a/src/redraw-activity/Makefile.am
+++ b/src/redraw-activity/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = 
+SUBDIRS = resources
 
 pythondir = $(PYTHON_PLUGIN_DIR)
 
diff --git a/src/redraw-activity/redraw.py b/src/redraw-activity/redraw.py
index ca47b38..42f3d90 100644
--- a/src/redraw-activity/redraw.py
+++ b/src/redraw-activity/redraw.py
@@ -921,7 +921,7 @@ class Gcompris_redraw:
 
     if event.type == gtk.gdk.LEAVE_NOTIFY:
       self.display_coord(event.x,event.y, 3)
-    else:
+    elif event.type == gtk.gdk.MOTION_NOTIFY:
       self.display_coord(event.x,event.y, 2)
 
 
@@ -930,7 +930,7 @@ class Gcompris_redraw:
 
     if event.type == gtk.gdk.LEAVE_NOTIFY:
       self.display_coord(event.x,event.y, 3)
-    else:
+    elif event.type == gtk.gdk.MOTION_NOTIFY:
       self.display_coord(event.x,event.y, 1)
 
     if event.type == gtk.gdk.BUTTON_PRESS:
diff --git a/src/redraw_symmetrical-activity/Makefile.am b/src/redraw_symmetrical-activity/Makefile.am
index 78e9357..4cf3372 100644
--- a/src/redraw_symmetrical-activity/Makefile.am
+++ b/src/redraw_symmetrical-activity/Makefile.am
@@ -1,6 +1,4 @@
-SUBDIRS = 
-
-
+SUBDIRS = resources
 
 xmldir = $(pkgdatadir)/@PACKAGE_DATA_DIR@
 



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