[Vala] [Valum]help with process async method.

2015-11-24 Thread Matrix
Hi: i'm writing a server side program with valum framework... in one entry point, the server will send a http request to a remote server, i copy the https://wiki.gnome.org/Projects/Vala/AsyncSamples in my code to test async double do_calc_in_bg(double val) throws ThreadError {

[Vala] help with writting vapi...

2015-11-22 Thread Matrix
Hi : i'm writting hiredis vala's binding.. here is a function like this: redisContext *redisConnectWithTimeout(const char *ip, int port, const struct timeval tv); so, how to tell the valac that the 3rd param is struct value not struct pointer?

Re: [Vala] How to get the base class name with out the spacename?

2015-11-16 Thread Matrix
PlatformX, Then just use: > > nname = get_type ().name (); > > if ("Lsclt" in nname) > > nname = nname.replace ("Lsclt",""); > > this is, from the type name get a string and replace the prefix (name > space) with nothing, an

[Vala] How to get the base class name with out the spacename?

2015-11-15 Thread Matrix
Hi : i want to get the base class name with out the spacename for example : namespace PlatformX { public class User () { this.get_type().name(); } } the name is PlatformXUser not User . any methods to query this ? 3ks.!! ___

Re: [Vala] How to get the base class name with out the spacename?

2015-11-15 Thread Matrix
i'm implementing a simple ORM model, which will crate the table refer to the class name namespace PlatformX { public class User () { .// with create a database table named user or users } } 在 2015年11月16日 02:24, Al Thomas 写道: >> From: Matrix <pigex.zh...@

[Vala] Help about write vapi file with c libray

2014-09-26 Thread Matrix
Hi: I'm try using Vala to write a GUI serialport tool with libserialport. I have already have a demo with pure c implenmention. I'm still working with write vapi file to this lib follow the tutorial at https://wiki.gnome.org/Projects/Vala/LegacyBindings but the c struct is init by this

Re: [Vala] Help about write vapi file with c libray

2014-09-26 Thread Matrix
在 2014/9/26 22:19, Luca Bruno 写道: On 26/09/2014 16:09, Matrix wrote: Hi: I'm try using Vala to write a GUI serialport tool with libserialport. I have already have a demo with pure c implenmention. I'm still working with write vapi file to this lib follow the tutorial at https

Re: [Vala] Help about write vapi file with c libray

2014-09-26 Thread Matrix
在 2014/9/26 22:54, Andre Masella 写道: Since it can be null if the open fails, it would be best as “out Port? port”. On 26 September 2014 10:48, Luca Bruno lethalma...@gmail.com wrote: On 26/09/2014 16:44, Matrix wrote: 在 2014/9/26 22:19, Luca Bruno 写道: On 26/09/2014 16:09, Matrix wrote: Hi

[Vala] How to donate vala's documentation?

2014-09-25 Thread Matrix
Hi: I am working on translate some vala's doc into Chinese... 1:The Vala Tutorial https://wiki.gnome.org/Projects/Vala/Tutorial (finished) 2:Vala's Memory Management Explained https://wiki.gnome.org/Projects/Vala/ReferenceHandling (finished) 3:Writing VAPI files

Re: [Vala] [ANNOUNCE] Vala 0.25.4 - Compiler for the GObject type system

2014-09-16 Thread Matrix
i'm fix it... valac look up cc for c compiler, not gcc, i just copy gcc to cc, it works 在 2014/9/16 11:58, Matrix 写道: Hi: thanks to your job... but i can not run valac correctly under windows ... it always hint the fail message, like this: snapshot how to fix

Re: [Vala] [ANNOUNCE] Vala 0.25.4 - Compiler for the GObject type system

2014-09-15 Thread Matrix
Hi: thanks to your job... but i can not run valac correctly under windows ... it always hint the fail message, like this: snapshot how to fix it ?? ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

[Vala] Vala Tutorial Chinese Edition

2013-01-25 Thread Matrix
Hi: the LINKis Vala Tutorial and Vala Memory Management Chinese Edition in PDF format i want to contribute to vala's official website https://www.dropbox.com/sh/oq2yx5tf32u7bcq/Cwphg1S5lQ ___ vala-list mailing list vala-list@gnome.org