[Vala] error: too many arguments to function ‘gdk_color_copy’



Hello,

I am trying to compile with vala 0.8.0: 

        int main (string[] argv){
            Gdk.Color color = Gdk.Color();
            Gdk.Color color_copy = color.copy();
            return 0;
        }
        
output for `valac --pkg gdk-2.0 gdk_color_copy.vala`

        /home/artem/Development/vala gdk_copy/gdk_color_copy.vala.c:24:
        error: too many arguments to function ‘gdk_color_copy’

Vala generates this .c code for my example

        color_copy = (gdk_color_copy (&color, &_tmp0_), _tmp0_);

but in documentation there is only function with this signature

        GdkColor *gdk_color_copy (const GdkColor *color);

How can i fix this code?




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