[Vala] Problem converting c to vala/genie

2010-11-01 Thread Nicolas
Hello, I'm trying to use a c library in genie and i have a question about converting code. This is the c code who makes me crazy ! The struct: typedef struct _Widget_Data Widget_Data; struct _Widget_Data { Object *myboject }; Now in the function: Widget_Data *wd; wd =

Re: [Vala] Problem converting c to vala/genie

2010-11-01 Thread Jamie McCracken
Im not sure what you mean - are you using or porting the code in the c library? If you are using a c library in Genie/vala then you need to create a vapi file for it if you are porting a c library to genie/vala then you dont need to specify ELM_NEW as construction is done for you : var wd = new

Re: [Vala] Problem converting c to vala/genie

2010-11-01 Thread Nicolas
Hi Jamie, Thanks for your response. I'm trying to create the vapi for the Elementary library from E17 (only widget creation part, the rest is already done). I have another question, how to do this: How can i pass my struct Widget_Data to void* data ? elm_widget_data_set(Evas_Object *obj,

Re: [Vala] Problem converting c to vala/genie

2010-11-01 Thread Ɓukasz Pankowski
Nicolas c.r@wanadoo.fr writes: Hi Jamie, Thanks for your response. I'm trying to create the vapi for the Elementary library from E17 (only widget creation part, the rest is already done). You can find bindings for Elementary library at

Re: [Vala] Problem converting c to vala/genie

2010-11-01 Thread Nicolas
Hi and thanks for your response. I'm already using this old vapi and updated it, the vapi i try to create is from the eml_widget.h. With this file, it's possible to create new elementary widget. Nicolas. You can find bindings for Elementary library at

Re: [Vala] vala-gen-introspect does not add my struct to *.gi file

2010-11-01 Thread Anatol Pomozov
Hi, I have a smaller repo case. On my Ubuntu 10.04 I run /usr/local/lib/vala-0.10/gen-introspect-0.10 --namespace=Thrift -I/usr/local/include/thrift -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include /usr/local/include/thrift/protocol/thrift_protocol.h /usr/local/lib/libthrift_c_glib.so It