[gcompris-devel] [PATCH] Pass NULL as last goo_canvas_image_new's argument

Bruno Coudoin bruno.coudoin at free.fr
Sun Jun 27 23:33:26 UTC 2010



Arf, I use to say that I should work on these ugly gtk warnings but
could not put my nails on them. Now you got them, thanks a lot.

Bruno.

Le mercredi 23 juin 2010 à 05:22 +0000, Aleksey Lim a écrit :
> ---
>  src/gcompris/about.c |    6 ++++--
>  src/gcompris/timer.c |    3 ++-
>  2 files changed, 6 insertions(+), 3 deletions(-)
> 
> diff --git a/src/gcompris/about.c b/src/gcompris/about.c
> index d17f560..e4e5648 100644
> --- a/src/gcompris/about.c
> +++ b/src/gcompris/about.c
> @@ -168,7 +168,8 @@ void gc_about_start ()
>        item = goo_canvas_image_new (rootitem,
>  				   pixmap,
>  				   (gdouble) (BOARDWIDTH*0.75) - gdk_pixbuf_get_width(pixmap)/2,
> -				   (gdouble) y_start - gdk_pixbuf_get_height(pixmap) + 15);
> +				   (gdouble) y_start - gdk_pixbuf_get_height(pixmap) + 15,
> +                   NULL);
>  
>        gdk_pixbuf_unref(pixmap);
>        g_free(sponsor_image);
> @@ -180,7 +181,8 @@ void gc_about_start ()
>        item = goo_canvas_image_new (rootitem,
>  				   pixmap,
>  				   (gdouble) (BOARDWIDTH*0.8) - gdk_pixbuf_get_width(pixmap)/2,
> -				   (gdouble) y_start - gdk_pixbuf_get_height(pixmap)/2);
> +				   (gdouble) y_start - gdk_pixbuf_get_height(pixmap)/2,
> +                   NULL);
>        gdk_pixbuf_unref(pixmap);
>  
>        item = goo_canvas_text_new (rootitem,
> diff --git a/src/gcompris/timer.c b/src/gcompris/timer.c
> index 50c7267..5082a30 100644
> --- a/src/gcompris/timer.c
> +++ b/src/gcompris/timer.c
> @@ -87,7 +87,8 @@ gc_timer_display(int ax, int ay,
>  	gc_timer_item = goo_canvas_image_new (boardRootItem,
>  					      pixmap,
>  					      x,
> -					      y);
> +					      y,
> +                          NULL);
>  
>  	gdk_pixbuf_unref(pixmap);
>  	g_free(filename);


-- 
Bruno Coudoin
http://gcompris.net  Free educational software for kids
http://toulibre.org  Logiciel Libre à Toulouse
http://april.org     Promouvoir et défendre le Logiciel Libre





More information about the Gcompris-devel mailing list