[Vala] Possible but in string.index_of, index_of_char and contains

2013-10-15 Thread Thomas Olson
Hello, I was getting some false positives in a string that I was using for valid character lookups so I wrote a little test app to display what I was seeing. Below are the lines that were run as well as what the output of each of those lines. The first set of three lines looks correct, but

Re: [Vala] Assist with compile issue re Cairo.PathData

2013-10-15 Thread Evan Nemerson
You're close. valac doesn't handle this very well because of the anonymous structs in the C API. It wants to assign to temporary variables even when all you're doing is accessing fields, and since they're structs the temporary variables aren't pointers, which will cause the CC to complain (even t

Re: [Vala] Assist with compile issue re Cairo.PathData

2013-10-15 Thread Shawn Ferris
nevermind.. I just noticed that's wrong too :D On Tue, Oct 15, 2013 at 2:42 PM, Shawn Ferris wrote: > On Tue, Oct 15, 2013 at 12:48 PM, Donn Ingle wrote: > >> > array.. A quick glance at the cairo vapi, and I think you really want >> this?: >> > Cairo.PathData[] data = path.data; >> >> I fe

Re: [Vala] Assist with compile issue re Cairo.PathData

2013-10-15 Thread Shawn Ferris
On Tue, Oct 15, 2013 at 12:48 PM, Donn Ingle wrote: > > array.. A quick glance at the cairo vapi, and I think you really want > this?: > > Cairo.PathData[] data = path.data; > > I feel disturbed by that ;) Not sure why. > > The code I'm trying to Vala-ize is here: > http://cairographics.org/m

Re: [Vala] Bountysource of a Vala project

2013-10-15 Thread Luca Bruno
My suggestion is to contribute to gitg, it's written in vala and gtk. You can still crowdfund. Good luck. Best regards, On Tue, Oct 15, 2013 at 7:22 PM, Dev_NIX wrote: > Hi! > > I'm starting a crowdfunding of a project to be done in Vala languaje. It's > a Git client, based on libgit2, because

Re: [Vala] Assist with compile issue re Cairo.PathData

2013-10-15 Thread Donn Ingle
> array.. A quick glance at the cairo vapi, and I think you really want this?: > Cairo.PathData[] data = path.data; I feel disturbed by that ;) Not sure why. The code I'm trying to Vala-ize is here: http://cairographics.org/manual/cairo-Paths.html#cairo-path-data-t (scroll down a wee bit to

Re: [Vala] Assist with compile issue re Cairo.PathData

2013-10-15 Thread Shawn Ferris
Sigh.. clearly you should not listen to me.. I can't even use gmail.. My apologies if this has landed on the list a couple of times :D On Tue, Oct 15, 2013 at 4:06 AM, Donn Ingle wrote: > Hello, > //Have tried Cairo.PathData[] data; I don't know anything about Cairo, but you're not actually

[Vala] Bountysource of a Vala project

2013-10-15 Thread Dev_NIX
Hi! I'm starting a crowdfunding of a project to be done in Vala languaje. It's a Git client, based on libgit2, because there's no good GUI client on Linux, and Windows clients suck (with svn this not happens). As I want to work on it fulltime (2h per day is not enough) I've started to ask for mon

[Vala] Assist with compile issue re Cairo.PathData

2013-10-15 Thread Donn Ingle
Hello, I'm sure this is my small brain and lack of experience, but I can't get past this compile error. I will paste a complete sample below. --- using Gee; using Cairo; // Compile with: valac --pkg gee-1.0 --pkg gtk+-3.0 -X -lm cairopath.compile.bug.vala -o test public abstract class Shape : O