Re: [Vala] Who updates references.valadoc.org?

2009-10-18 Thread Magnus Therning
On 18/10/09 19:14, Didier 'Ptitjes' wrote: Hi Magnus, Magnus Therning wrote: On 16/10/09 08:29, Didier 'Ptitjes' wrote: Florian told me he would update it this WE. Excellent. I have no problems making do with the .vapi file in the meantime ;) This may finally take a

[Vala] Another issue in gnome-keyring

2009-10-17 Thread Magnus Therning
p0 never is freed. On top of that pwd is pointing to secret information, and it really should be freed using gnome_keyring_free_password() rather then g_free(). /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org

[Vala] Interesting bug...

2009-10-17 Thread Magnus Therning
eclared 'const' and the other not? Any way, it's a bug so it should be fixed upstream. Should I file it in Gnome's bugzilla or is an email enough? In the meantime is there something I can do locally to make sure my code compiles? /M -- Magnus Therning

Re: [Vala] Who updates references.valadoc.org?

2009-10-16 Thread Magnus Therning
On 16/10/09 08:29, Didier 'Ptitjes' wrote: Hi Magnus, Magnus Therning wrote: I just got around to upgrading to Gee 0.5.0, but references.valadoc.org doesn't seem to have been updated yet so it's all turning out to be a bit more work than I had hoped. Who should I poke to g

[Vala] Who updates references.valadoc.org?

2009-10-15 Thread Magnus Therning
I just got around to upgrading to Gee 0.5.0, but references.valadoc.org doesn't seem to have been updated yet so it's all turning out to be a bit more work than I had hoped. Who should I poke to get the Gee reference docs updated? /M -- Magnus Therning

[Vala] Calling into C libs

2009-10-05 Thread Magnus Therning
I'm assume this is what .vapi files allow you to do. However, I only really want to call a couple of functions, so are there any pointers on how to manually write a .vapi file and get it hooked up properly for compilation? /M -- Magnus Therning(OpenPGP: 0xAB4

Re: [Vala] Vala bindings for epiphany?

2009-10-05 Thread Magnus Therning
er bodies > of code. That is a plausible explanaition for why I feel the class-based gobject system is a bit strange when using Seed. /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus ide

Re: [Vala] Vala bindings for epiphany?

2009-10-03 Thread Magnus Therning
On Sat, Oct 03, 2009 at 10:29:30PM +0200, Andrea Bolognani wrote: > On Sat, Oct 03, 2009 at 08:24:25PM +0100, Magnus Therning wrote: > > > I'm sure there are implementations of sets around for JavaScript. But > > that's just the point, Seed *doesn't come with

Re: [Vala] Vala bindings for epiphany?

2009-10-03 Thread Magnus Therning
On Sat, Oct 03, 2009 at 01:50:02PM +0300, Xan Lopez wrote: > On Sat, Oct 3, 2009 at 1:30 PM, Magnus Therning wrote: > > On Fri, Oct 02, 2009 at 06:00:07PM +0200, Wouter Bolsterlee wrote: > >> Op vrijdag 25-09-2009 om 22:11 uur [tijdzone +0100], schreef Magnus > >> Thern

Re: [Vala] Vala bindings for epiphany?

2009-10-03 Thread Magnus Therning
On Fri, Oct 02, 2009 at 06:00:07PM +0200, Wouter Bolsterlee wrote: > Op vrijdag 25-09-2009 om 22:11 uur [tijdzone +0100], schreef Magnus > Therning: > > Does anyone out there have a .vapi for epiphany's extension API? > > > > I'm particularly intereste

Re: [Vala] Sorting a GLib.List

2009-09-26 Thread Magnus Therning
Didier 'Ptitjes' wrote: Hi Magnus, Magnus Therning wrote: What function should I use to sort a list of strings to avoid the compiler warning I get with strcmp: ... my_list.sort( strcmp ); ... Test.vala:60: warning: passing argument 2 of ‘g_list_sort’ from incompatible po

[Vala] Sorting a GLib.List

2009-09-26 Thread Magnus Therning
‘GCompareFunc’ but argument is of type ‘int (*)(const char *, const char *)’ /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe signature.asc Description: OpenPGP

[Vala] Gee and sorting?

2009-09-26 Thread Magnus Therning
The collection types in Gee are really useful, but the list types seem to be missing a sorting function. Is that deliberate, because it should be done in some other way, an oversight, or simply something that still is TBD? /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4

[Vala] Vala bindings for epiphany?

2009-09-25 Thread Magnus Therning
Does anyone out there have a .vapi for epiphany's extension API? I'm particularly interested in the bookmark manipulation API. Cheers, M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.

Re: [Vala] Marshalling stuff into JSON

2009-09-24 Thread Magnus Therning
mickey branch). Perhaps you can add up on that. Thanks for the pointer, and for the commiseration ;-) I found the parsing fairly straight forward, but the generation is causing me headaches. For the time being I'm generating the JSON "by hand" (for my simple objects it's fewer

[Vala] Marshalling stuff into JSON

2009-09-24 Thread Magnus Therning
t: (process:11711): GLib-GObject-WARNING **: gvalue.c:185: cannot initialize GValue with type `gchararray', the value has already been initialized as `gchararray' Anyone with any ideas? /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org

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

[Vala] Strange Map behaviour in Gee

2009-09-23 Thread Magnus Therning
la/TestGee/Map.vala.c:21: warning: passing argument 7 of ‘gee_tree_map_new’ from incompatible pointer type /usr/include/gee-1.0/gee.h:584: note: expected ‘GCompareFunc’ but argument is of type ‘gint (*)(void *, void *)’ And a segmentation fault at runtime. Not quite what I had expected... %

[Vala] Any examples of vala + json-glib?

2009-09-20 Thread Magnus Therning
I've been looking for some examples of using json-glib from vala, but have found precious little. Any good pointers? I'm particularly interested in parsing (or creating vala objects from) arrays of JSON objects. /M -- Magnus Therning(OpenPGP: 0xAB4DFB

Re: [Vala] Probably a setup issue with Gee

2009-09-19 Thread Magnus Therning
Frederik wrote: Magnus Therning wrote: Where should I have looked to find that info myself? Unfortunately, this info is missing in the Gee section of the tutorial, but you can see it here: http://live.gnome.org/Vala/GeeSamples I don't need a --pkg glib-2.0 when "using GLib"

Re: [Vala] Probably a setup issue with Gee

2009-09-19 Thread Magnus Therning
Frederik wrote: Magnus Therning wrote: However, when I try to compile a simple example from Vala Code (http://code.valaide.org/content/gee-set-example) I get the following error: % valac Set.vala Set.vala:1.7-1.9: error: The namespace name `Gee' could not be found usin

[Vala] Probably a setup issue with Gee

2009-09-19 Thread Magnus Therning
be found using Gee; ^^^ Compilation failed: 1 error(s), 0 warning(s) It looks like something's missing from my system, preventing vala from seeing Gee. I have no idea what though. Any suggestions? /M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.or