[gcompris-devel] gcompris and gnome 2.2

Olivier Samyn osamyn at ulb.ac.be
Mon Feb 10 04:56:07 UTC 2003


Hi all,

since I'm new here let me present my self before I speak you about a bug
:)...

I'm an informatic engineer from brussels, I'm the creator of two small
projects (yafi and pig) and I participated past a lot in IceWM.

I met Bruno this week-end at fosdem and proposed him to try to implement
python bindings into gcompris...

Here is for the presentation.  Now the bug...

Since I'm using at home a Linux From Scratch, I update my system to my
own comiled Gnome 2.2 version. This week-end I tryed to run gcompris on
this box and I got some hugly bugs in display refresh.

After some hacking I found that:
- In the latest release of gnomecanvas they removed some display
updates.
- One of the demos of gnomecanvas doesn't work on my system without
patching it.
- Some GCompris plugins react with the same behaviour as this gnomecanvs
demo. So GCompris doesn't work well.

After some more hacking I found a way to patch the gnomecanvas demo by
adding some: "gnome_canvas_update_now(canvas);" calls.

Having this demo working, I began to patch gcompris (see below) and get
it working a lot better on my system. (I don't tested all plugins
already, my gaming time beeing reduced by having to sleep a bit :) )

So, all this blabla done, I propose you my patch against gcompris 2.1
bellow and I ask a question: Does anyone noticed the same behaviour on a
gnome 2.1 or 2.2 system ? And in both cases, is a patch a solution, or
does I (we?) have to report some bug to gnomecanvas developpers ?

--------------Cut here for the patch-------------------
diff -ru gcompris-2.1/src/boards/menu.c
/home/olivier/Programmation/gcompris/src/boards/menu.c
--- gcompris-2.1/src/boards/menu.c	2003-01-14 09:45:44.000000000 +0100
+++ /home/olivier/Programmation/gcompris/src/boards/menu.c	2003-02-10
01:51:28.000000000 +0100
@@ -153,6 +153,8 @@
       gcomprisBoard->maxlevel=1;
       gcompris_bar_set(GCOMPRIS_BAR_CONFIG|GCOMPRIS_BAR_ABOUT);
 
+      gnome_canvas_update_now(gcomprisBoard->canvas);
+
       menu_pause(FALSE);
 
     }
diff -ru gcompris-2.1/src/boards/shapegame.c
/home/olivier/Programmation/gcompris/src/boards/shapegame.c
--- gcompris-2.1/src/boards/shapegame.c	2002-12-16 09:04:03.000000000
+0100
+++
/home/olivier/Programmation/gcompris/src/boards/shapegame.c	2003-02-10
02:36:17.000000000 +0100
@@ -1151,6 +1153,7 @@
 
       root_item = g_list_nth_data(shape_list_group,
current_shapelistgroup_index);
       gnome_canvas_item_show(root_item);
+      gnome_canvas_update_now(gcomprisBoard->canvas);
     default:
       break;
     }
--------------Cut here for the patch-------------------

See you, 

-- 
Olivier Samyn <osamyn at ulb.ac.be>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcompris.diff
Type: text/x-patch
Size: 995 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/gcompris-devel/attachments/20030210/d962b760/attachment.diff>


More information about the Gcompris-devel mailing list