Re: [Vala] SDL TTF Bindings can't find font

2012-09-15 Thread David Gomes
Oh, I forgot, thank you tons, that was it! On 9/15/12, tarn...@tarnyko.net wrote: > > Hi David, > > Do you have the following line at the beginning of your method : > > SDLTTF.init (); > > > Regards, Tarnyko > > > > David Gomes writes: > >> Hello there, first of all here's the relevant part of my

Re: [Vala] SDL TTF Bindings can't find font

2012-09-15 Thread tarnyko
Hi David, Do you have the following line at the beginning of your method : SDLTTF.init (); Regards, Tarnyko David Gomes writes: Hello there, first of all here's the relevant part of my code: using SDLTTF; (...) public void draw_string (string text, int x, int y, Color color)

Re: [Vala] GObject.get() + struct in Vala is problematic

2012-09-15 Thread Derek Dai
GLib.Object.get() actually is g_object_get() in C. ClutterColor is registered as a boxed type in GObject's term. Returns boxed type from g_object_get() in GObject type system will make a copy with g_boxed_copy() first, so, what you get is a pointer instead of simple value (pass by value). Here i

[Vala] SDL TTF Bindings can't find font

2012-09-15 Thread David Gomes
Hello there, first of all here's the relevant part of my code: using SDLTTF; (...) public void draw_string (string text, int x, int y, Color color) { Rect destination = {}; Font pixel_font = new Font ("font.ttf", 20); if (pixel_font == null) print ("Font not found\n"); (...) }

Re: [Vala] Exposing the CLUTTER_COLOR_* macros in Vala

2012-09-15 Thread Emmanuele Bassi
hi; On 15 September 2012 02:30, Kerrick Staley wrote: > I've created a patch for Vala [1] that will expose the CLUTTER_COLOR_* > macros in Vala as Clutter.Color.*. It maps e.g. CLUTTER_COLOR_Red to > Clutter.Color.RED and CLUTTER_COLOR_DarkOrange to > Clutter.Color.DARK_ORANGE. This convention di