[Vala] [PATCH]Add an option to valac for passing args to pkg-config

2012-09-15 Thread Kder
I added a feature(command line option) for the vala compiler: -p, --pkg-config-args=ARGS Pass ARGS to pkg-config utility to pass customized arguments to pkg-config utility. For example, we can use this to static compile a gtk program with valac: valac test_static.vala -p --static

Re: [Vala] [PATCH]Add an option to valac for passing args to pkg-config

2012-09-15 Thread Kder
Sorry for the word wrapping problem in my last message. This is my patch: diff -Nuar vala-0.17.5/codegen/valaccodecompiler.vala vala-0.17.5-patched/ codegen/valaccodecompiler.vala --- vala-0.17.5/codegen/valaccodecompiler.vala 2012-08-06 19:19:28 +0800 +++

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

2012-09-15 Thread Emmanuele Bassi
hi; On 15 September 2012 02:30, Kerrick Staley m...@kerrickstaley.com 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.

[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] 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

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

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 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