[Vala] RFC: hildon-1.vapi update for Maemo Fremantle

2009-09-24 Thread Philipp Zabel
Hi, I tried to update the hildon-1.vapi file to support the new widgets in Maemo Fremantle. What I did so far: - I manually patched gtk+-2.0.vapi to include the HILDON_SIZE_ constants and hildon_set_theme_size and hildon_gtk_tree_view_new_with_model methods (patch below). There's probably quite a

Re: [Vala] Strange Map behaviour in Gee

2009-09-24 Thread Magnus Therning
2009/9/23 Matías De la Puente : > Take a look here > http://live.gnome.org/Vala/Tutorial#head-7b3930bf3573a66028940bf6123b19e19a33f9a5 > > should be: > var map = new HashMap (str_hash, str_equal); Bugger, yes you are right. I'm such an idiot at times ;-) Cheers, M -- Magnus Therning

Re: [Vala] Strange Map behaviour in Gee

2009-09-24 Thread Didier 'Ptitjes'
Magnus Therning wrote: 2009/9/23 Matías De la Puente : Take a look here http://live.gnome.org/Vala/Tutorial#head-7b3930bf3573a66028940bf6123b19e19a33f9a5 should be: var map = new HashMap (str_hash, str_equal); Bugger, yes you are right. I'm such an idiot at times ;-) Starting with the 0.5

Re: [Vala] Hi, Is Vala what I am looking for?

2009-09-24 Thread Andrés G. Aragoneses
Jiří Zárevúcky wrote: > On 09/23/2009 05:24 PM, "Andrés G. Aragoneses" wrote: >> Jiří Zárevúcky wrote: >> >>> On 09/21/2009 10:52 PM, "Andrés G. Aragoneses" wrote: >>> [...] Of course, what I'm talking about is about adding one more user choice, not "removal of Mono" like the

Re: [Vala] Hi, Is Vala what I am looking for?

2009-09-24 Thread Orlando José Luque Moraira
Hello!, Hey, Kratos is my ferret :D -- Ildar Mulyukov > You'd better join the IRC #vala I have not internet connection at home (for some days!). I cannot use IRC in the workplace. One day I am able I will enter the #vala from home. -- Michael B. Trausch > Welcome to the list. Thanks you!

Re: [Vala] Hi, Is Vala what I am looking for?

2009-09-24 Thread Levi Bard
> Hey, Kratos is my ferret :D The purpose of your original message was to introduce us to Kratos, wasn't it? :-P > I am looking for a universal combination between language and libraries. This is the great thing about using Vala for libraries: you don't NEED to be able to compile Vala librar

[Vala] [RFC, PATCH] add async keyword to vapigen

2009-09-24 Thread Philipp Zabel
Hi, the following patch adds support for an "async" attribute to vapigen. This can be used in metadata to fix up the binding of asynchronous methods that don't end in _async like this: diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata index 1ca9522..e458

[Vala] Marshalling stuff into JSON

2009-09-24 Thread Magnus Therning
I'm having some problems with json-glib-1.0. As things went *very* pear shaped when I tried to marshal an object I have I've limited myself a little. Currently I'm working on the following short example: using Json; int main( string[] args ) { Generator json_gen = new Generator();

Re: [Vala] Marshalling stuff into JSON

2009-09-24 Thread Michael 'Mickey' Lauer
Fwiw, I had lots of problems with json-glib as well. I talked with Jürg about it who told me he had something written in Vala. I took his code and based on that. The current codebase can be found at git.freesmartphone.org -> libpersistence.git (mickey branch). Perhaps you can add up on that. Cheer

Re: [Vala] Marshalling stuff into JSON

2009-09-24 Thread Magnus Therning
Michael 'Mickey' Lauer wrote: Fwiw, I had lots of problems with json-glib as well. I talked with Jürg about it who told me he had something written in Vala. I took his code and based on that. The current codebase can be found at git.freesmartphone.org -> libpersistence.git (mickey branch). Perhap

Re: [Vala] using a non-glib c library

2009-09-24 Thread Mr. Maxwell .
ID3Lib defines numerous enums. Here's an example typedef enum _ID3_TextEnc ID3_TextEnc; enum _ID3_TextEnc { ID3TE_NONE = -1, ID3TE_ISO8859_1, ID3TE_UTF16, ID3TE_UTF16BE, ID3TE_UTF8, ID3TE_NUMENCODINGS, ID3TE_ASCII = ID3TE_ISO8859_1, ID3TE_UNICODE = ID3TE_UTF16 }; I'm no