Re: [Vala] error: too many arguments to function ‘gdk_color_copy’
- From: Abderrahim Kitouni <a kitouni gmail com>
- To: Artem Alexanenkov <alexanenkovad gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] error: too many arguments to function ‘gdk_color_copy’
- Date: Thu, 8 Apr 2010 20:10:01 +0100
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]