Re: [Vala] How to check if current thread is main thread?

2012-08-01 Thread Andrea Del Signore
On Fri, 2012-07-06 at 08:11 +0200, mar...@saepia.net wrote: Hi I need to check (for debugging purposes) if current thread is main thread. How can I do that in Vala? I know that in GLib exists g_thread_self() and I can use result of that function for that purpose but in Vala's vapi it has

[Vala] Uint32 Color

2012-08-01 Thread David Gomes
http://valadoc.org/#!api=sdl-gfx/SDLGraphics.Rectangle.fill_color Regarding that function, how can I have an Uint32 act as a color? I tried 0xFF but no luck. Thank you. -- David Gomes ___ vala-list mailing list vala-list@gnome.org

Re: [Vala] Uint32 Color

2012-08-01 Thread Calvin Walton
On Wed, 2012-08-01 at 23:50 +0100, David Gomes wrote: http://valadoc.org/#!api=sdl-gfx/SDLGraphics.Rectangle.fill_color Regarding that function, how can I have an Uint32 act as a color? I tried 0xFF but no luck. I took a look at the SDL documentation,

Re: [Vala] vala+automake bug?

2012-08-01 Thread Evan Nemerson
On Tue, 2012-07-31 at 08:33 +0800, Nor Jaidi Tuah wrote: Dear all, My project (pasang-emas.sourceforge.net) uses automake, using AM_PROG_VALAC macro in the configure.ac file. It uses functions from Math (Math.sin, Math.hypot etc). Recently, one user complains that upon issuing

Re: [Vala] vala+automake bug?

2012-08-01 Thread Nor Jaidi Tuah
* Why it works on my computer? I check my Makefile, and there is no -lm. I seem to remember that on certain platforms math functions are included in libc and adding libm isn't necessary. It's probably not a good idea to rely on that and either always pass -lm or use AC_CHECK_LIB (or