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



Hi,

2010/4/8, Artem Alexanenkov <alexanenkovad gmail com>:
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;
        }
This should fix it :
int main (string[] argv){
    Gdk.Color color = Gdk.Color();
    Gdk.Color color_copy = color;
    return 0;
}

btw, I think the copy method should be hidden, it's not really a
method. And since Gdk.Color is a struct, you don't need anything to
copy it ;-)

HTH,
Abderrahim



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