Re: [Vala] Seg fault when trying to pass args to gtk_init_check.

2012-07-18 Thread Jürg Billeter
Hi Tal, On Mon, 2012-07-16 at 20:27 +0300, Tal Hadad wrote: Ok I've explained my self wrong. The reason I use a pointer to string[] instead of just storing it, is that I want the plugins init calls, Gtk.init_check for example, is that I want Gtk to remove arguments which Gtk familiar with.

Re: [Vala] Seg fault when trying to pass args to gtk_init_check.

2012-07-18 Thread Tal Hadad
Thanks about the solution. I thought about this solution earlier as fail safe, but it just didn't seen right to force the user to use my way all along main(and not natural). However, I've ended up using another way to make this easy in Vala: namespace Max { [CCode (has_target=false)]

[Vala] Unions in Vala

2012-07-18 Thread Nadir Sampaoli
I'm porting some code I wrote from procedural C to objective Vala and I'm looking for the Vala-way to implement a union. I'm using a union in C because I need a structure where one uin16_t and two uint8_t are aligned: typedef struct { uint8_t lo; uint8_t hi; } WORD; typedef union {