Re: [Vala] cairo example compile fail



On 06/03/2008, Campbell Barton <ideasman42 gmail com> wrote:
Hi, just tried compiling  http://live.gnome.org/Vala/CairoSample
 ./valac test.vala --pkg gtk+-2.0 --pkg cairo -o cairo-demo

 /media/data/render/vala/bin/test.vala:33.13-33.24: error: Too many
 arguments, method `Cairo.Context.set_dash' does not take 3 arguments
 /media/data/render/vala/bin/test.vala:36.13-36.24: error: Too many
 arguments, method `Cairo.Context.set_dash' does not take 3 arguments
 Compilation failed: 2 error(s), 0 warning(s)

It looks like there used to be a mistake in the Cairo binding that's
now been fixed.  The issue is that the second parameter used to be the
length of the array (the first parameter), but that is now set
automatically by Vala.  I'll change the sample, just as soon as I
check why there is still a warning when it does compile.

-- 
Phil Housley



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