Re: [Vala] How to initialize static field

2009-11-12 Thread Jan Hudec
Hello, On Fri, November 13, 2009 00:58, Pavel Stupnikov wrote: > I want to create some static fields. Int field works ok, but HashMap > remains null even after initialization... What i did wrong? You didn't run the initialization. The static constructor only runs when the corresponding metaobject

[Vala] How to initialize static field

2009-11-12 Thread Pavel Stupnikov
Hello! I want to create some static fields. Int field works ok, but HashMap remains null even after initialization... What i did wrong? using Gee; public static class Foo: Object { public static HashMap bar = new HashMap(); public static int a = 5; } void main () { stdout.printf(

Re: [Vala] [Genie] Clutter sample problem

2009-11-12 Thread Nicolas
Ok i found the solution, if someone interested : [indent=4] uses Clutter class ClutterDemo animations : array of Animation stage : Stage rectangles : array of Rectangle const colors : array of string = { "blanched almond", "OldLace", "MistyRose", "White", "LavenderBlush", "Corn

Re: [Vala] Threading, passing data around?

2009-11-12 Thread Joseph Montanez
Abderrahim & Frederik, Thanks! On Thu, Nov 12, 2009 at 1:53 AM, Frederik wrote: > Joseph Montanez wrote: >> I am looking at >> http://references.valadoc.org/glib-2.0/GLib.Thread.html without much >> luck on finding information on how to pass data to and from a thread. >> The functions are static

[Vala] [Genie] Clutter sample problem

2009-11-12 Thread Nicolas
Hi, I try to port the clutter sample from vala (http://mail.gnome.org/archives/vala-list/2009-November/msg00057.html) to genie and, of course, i have a problem: When i load the program, i have this message: (/usr/home/niko/Desktop/cluttertest:82339): Clutter-CRITICAL **: clutter_color_from_s

Re: [Vala] Threading, passing data around?

2009-11-12 Thread Frederik
Joseph Montanez wrote: > I am looking at > http://references.valadoc.org/glib-2.0/GLib.Thread.html without much > luck on finding information on how to pass data to and from a thread. > The functions are static so I don't have much luck on trying to access > any object properties. > ThreadFunc do

Re: [Vala] Threading, passing data around?

2009-11-12 Thread Abderrahim Kitouni
Hi, 2009/11/12 Joseph Montanez : > I am looking at > http://references.valadoc.org/glib-2.0/GLib.Thread.html without much > luck on finding information on how to pass data to and from a thread. > The functions are static so I don't have much luck on trying to access > any object properties. I don

[Vala] Threading, passing data around?

2009-11-12 Thread Joseph Montanez
I am looking at http://references.valadoc.org/glib-2.0/GLib.Thread.html without much luck on finding information on how to pass data to and from a thread. The functions are static so I don't have much luck on trying to access any object properties. -- Joseph Montanez Web Developer Gorilla3D Desig