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
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
+++
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.
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);
(...)
}
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
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
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