Re: [Vala] How to connect to signal if there's a property with the same name?

2015-12-11 Thread Andrew Benton
You might be able to get around this issue by using the GLib.Object's connect method to directly specify the signal. See: http://www.valadoc.org/#!api=gobject-2.0/GLib.Object.connect On 12/10/2015 12:16 PM, Luc Chante wrote: Hi, According to this

Re: [Vala] vector extensions for Vala

2015-08-26 Thread Andrew Benton
If we want to have vector extensions supported in vala, then a good way to do that might be to take advantage of the Cilk Plus extensions for C and C++ that are now supported by most compilers, including GCC upwards of version 4.8. One benefit of this would be that we wouldn't need to change

Re: [Vala] Using a C library

2015-04-28 Thread Andrew Benton
Justin, I believe that you have to use [CCode(cheader_filename=libspotify/api.h)] instead of cheader. -Andrew On 04/28/2015 06:29 PM, Justin Brown wrote: Hi Al, Thanks for the continued help. I've been making some progress on the vapi, but I've been putting off the compilation issue for a

Re: [Vala] GLib delegate error

2015-02-11 Thread Andrew Benton
It seems like there are a few problems. First, that isn't a named delegate type in any gio source code, upto and including the master branch. The second problem is that our binding is bad, because we're trying to bind against something that isn't there. The only work around that I've been able

Re: [Vala] Program doesn't quit

2013-12-03 Thread Andrew Benton
As a quick fix, you could replace the gtk_main_quit function with another function that has the same signature, but contains the exit method, which will be sure to bump you out of the program. Just be sure to declare the exit method in your file. extern void exit(int exit_code); void

Re: [Vala] Exit out of a Vala OpenGL program by using the ESC key

2013-07-04 Thread Andrew Benton
You can also add this line to your vala file so that you can use the exit(int) method. extern void exit(int exit_code); via: https://mail.gnome.org/archives/vala-list/2010-July/msg00168.html On 7/4/2013 1:31 PM, Simon Kågedal Reimer wrote: If this uses freeglut, you couldalao use