[gcompris-devel] gcompris and gnome 2.2

bruno bruno.coudoin at free.fr
Mon Feb 10 17:35:02 UTC 2003


Welcome olivier, I re-tell here what we said at the Fosdem. 

I see a demand in being able to develop python activities in gcompris.
This was in the TODO of my slides (my slides are in the file
architecture.sxi on the gcompris web site).

Olivier proposed to implement the python bindings in gcompris which I
hope could boost boards creations.

Now for the bug you have, I prefer to wait and/or submitting bugs to
gnome instead of patching gcompris. Also I have not seen the problem on
mainstream distribution and nobody else reported that.
What is you libgnomecanvas version, on my side I have:
rpm -qa | grep canvas
libgdk-pixbuf-gnomecanvas1-0.18.0-3mdk
libgnomecanvas2_0-devel-2.0.2-1mdk
libgnomecanvas2_0-2.0.2-1mdk

Bruno.


Le lun 10/02/2003 à 13:56, Olivier Samyn a écrit :
> 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>
> ----
> 

> 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;
>      }






More information about the Gcompris-devel mailing list