[Vala] problem with gnet ConnHttpEventResponse

2009-01-20 Thread jezra
hello, I am trying to retrieve the header_fields and header_values fields from a GNet.ConnHttpEventResponse and I don't know how to extract the data. The valdoc page http://valadoc.org/?path=gnet-2.0::GNet::ConnHttpEventResponse states that header_fields and header_values are weak string, but the G

[Vala] [ANNOUNCE] Vala Toys for gEdit 0.3.2

2009-01-20 Thread Andrea Del Signore
A new maintenance release for Vala Toys. Get it at: http://vtg.googlecode.com/files/vtg-0.3.2.tar.bz2 So Vala Toys for gEdit - "Change" version 0.3.2 is out and it supports the new vala 0.5.6 release. NEWS for version 0.3.2 == * This is a simple maintenance

Re: [Vala] just a suggestion

2009-01-20 Thread Phil Housley
2009/1/20 Phil Housley : > > I was thinking about this a while back when I was writing the > tutorial, I have a short contents list that I'll post here as soon as > I get home this evening. I really do intend to get back to updating > the tutorial/docs any day now, so I'll help out with anything e

Re: [Vala] gnome-db - binding problems

2009-01-20 Thread Jürg Billeter
On Tue, 2009-01-20 at 19:24 +0100, Hans Vercammen wrote: > On Tue, 2009-01-20 at 16:02 +0100, Frederik wrote: > > Hans Vercammen wrote: > > > /usr/include/libgda-3.0/libsql/sql_parser.h:122: syntax error, unexpected > > > typedef-name, expecting identifier or '(' > > > /usr/include/libgda-3.0/libs

Re: [Vala] gnome-db - binding problems

2009-01-20 Thread Hans Vercammen
On Tue, 2009-01-20 at 16:02 +0100, Frederik wrote: > Hans Vercammen wrote: > > /usr/include/libgda-3.0/libsql/sql_parser.h:122: syntax error, unexpected > > typedef-name, expecting identifier or '(' > > /usr/include/libgda-3.0/libsql/sql_parser.h:297: syntax error, unexpected > > typedef-name, ex

Re: [Vala] How to define inline callback functions in vapi

2009-01-20 Thread pancake
Use delegates: public static delegate int HelloFunction (int a); public void set_hello_function (HelloFunction function); Uwe Strempel wrote: Hello, How can I define inline declared callback functions in vapi files? I have for example follwing native c-code functions: class_new( void* (list_a

Re: [Vala] just a suggestion

2009-01-20 Thread Matías De la Puente
> > > :) My outline proposal: > >* GNOME Platform Overview >* The Vala Programming Language >* Quick Introduction to Vala for C# and Java Programmers >* A Simple Console Application >* Strings and Regular Expressions >* Collections, Lists, Maps and Sets >* Parsing Comman

Re: [Vala] just a suggestion

2009-01-20 Thread Frederik
Karl Lattimer wrote: > On Tue, 2009-01-20 at 10:44 +, Alberto Ruiz wrote: >> 2009/1/20 Karl Lattimer : >>> On Tue, 2009-01-20 at 09:44 +0700, Hans Baier wrote: > I still have a long way to learn Vala. > Since someone is successfully using Vala in a number > of projects I think they

[Vala] How to define inline callback functions in vapi

2009-01-20 Thread Uwe Strempel
Hello, How can I define inline declared callback functions in vapi files? I have for example follwing native c-code functions: class_new( void* (list_append)(void*,void*)); or class_new( void* (list_foreach)(void*, void *(fnc)(void*,void*,void*) ,void*)); Thanks for help! Best regards Uwe S

Re: [Vala] just a suggestion

2009-01-20 Thread Yu Feng
On Tue, 2009-01-20 at 12:21 +, Karl Lattimer wrote: > On Tue, 2009-01-20 at 10:44 +, Alberto Ruiz wrote: > > 2009/1/20 Karl Lattimer : > > > On Tue, 2009-01-20 at 09:44 +0700, Hans Baier wrote: > > >> > I still have a long way to learn Vala. > > >> > Since someone is successfully using Vala

Re: [Vala] just a suggestion

2009-01-20 Thread Luca Dionisi
On Tue, Jan 20, 2009 at 3:02 PM, Phil Housley wrote: > I was thinking about this a while back when I was writing the > tutorial, ... Hi Phil Are you talking about this (http://live.gnome.org/Vala/Tutorial) or this (http://www.vala-project.org/doc/vala-draft/) ? Anyway, your help could be good ne

Re: [Vala] gnome-db - binding problems

2009-01-20 Thread Frederik
Hans Vercammen wrote: > On Tue, 2009-01-20 at 14:39 +0100, Frederik wrote: >> How did you bind 'libsql/sql_parser.h'? It has unions and stuff. :( > > The internals in v4 have changed significantly. I didn't check into the > unions generation, but these do not seem to exist anymore. It's a bit > od

Re: [Vala] gnome-db - binding problems

2009-01-20 Thread Hans Vercammen
On Tue, 2009-01-20 at 14:39 +0100, Frederik wrote: > How did you bind 'libsql/sql_parser.h'? It has unions and stuff. :( The internals in v4 have changed significantly. I didn't check into the unions generation, but these do not seem to exist anymore. It's a bit odd. I get an error for v3: /usr/i

Re: [Vala] just a suggestion

2009-01-20 Thread Phil Housley
2009/1/20 Karl Lattimer : > If we're going to do this as a team I suggest that we outline a strategy > before we begin. > > Here are some chapters we'd want to consider, I'm starting off with ones > which I'd be happy to write; > > * Custom Widgets > * Cairo & Pango > * GTK Applications > > * F

Re: [Vala] gnome-db - binding problems

2009-01-20 Thread Frederik
Hans Vercammen wrote: > I think this was a problem with the v4 build too. glib-mkenums generates > a duplicate registration in the .so I wasn't aware that v4 is almost done, my Ubuntu only has v3 packages. How did you bind 'libsql/sql_parser.h'? It has unions and stuff. :( Right now, I have only

Re: [Vala] gnome-db - binding problems

2009-01-20 Thread Hans Vercammen
On Tue, 2009-01-20 at 13:55 +0100, Frederik wrote: > I am trying to bind libgda-3.0 (generation base attached to this mail). > I have already worked around some naming conflicts via metadata. But for > one thing I have no solution: Cool! > In 'libgda/gda-data-model.h' there is this enum: > > typ

Re: [Vala] gnome-db

2009-01-20 Thread Hans Vercammen
On Tue, 2009-01-20 at 12:21 +0100, Luca Dionisi wrote: > On Tue, Jan 20, 2009 at 11:57 AM, Frederik wrote: > > Alberto Ruiz wrote: > >> I actually think, that it would be really nice to do a good GNOME (as > >> in the platform) Tutorial based in Vala. Teaching how to create a > >> GNOME app from t

Re: [Vala] gnome-db - binding problems

2009-01-20 Thread Frederik
I am trying to bind libgda-3.0 (generation base attached to this mail). I have already worked around some naming conflicts via metadata. But for one thing I have no solution: In 'libgda/gda-data-model.h' there is this enum: typedef enum { GDA_DATA_MODEL_ACCESS_RANDOM = 1 << 0, GDA_DATA_MODEL_

Re: [Vala] just a suggestion

2009-01-20 Thread Karl Lattimer
On Tue, 2009-01-20 at 10:44 +, Alberto Ruiz wrote: > 2009/1/20 Karl Lattimer : > > On Tue, 2009-01-20 at 09:44 +0700, Hans Baier wrote: > >> > I still have a long way to learn Vala. > >> > Since someone is successfully using Vala in a number > >> > of projects I think they already have a good k

Re: [Vala] just a suggestion

2009-01-20 Thread Jürg Billeter
On Tue, 2009-01-20 at 08:26 +, Karl Lattimer wrote: > On Tue, 2009-01-20 at 09:44 +0700, Hans Baier wrote: > > > I still have a long way to learn Vala. > > > Since someone is successfully using Vala in a number > > > of projects I think they already have a good knowledge > > > of common pitfall

Re: [Vala] just a suggestion

2009-01-20 Thread Alberto Ruiz
2009/1/20 Luca Dionisi : > On Tue, Jan 20, 2009 at 11:44 AM, Alberto Ruiz wrote: >> >> Luca, count on me to write some stuff and help with the content index >> if someone else (you?) leads the effort (meaning, doing brown >> dispatching and reminding people to complete their parts of the book >> ;

[Vala] gnome-db

2009-01-20 Thread Luca Dionisi
On Tue, Jan 20, 2009 at 11:57 AM, Frederik wrote: > Alberto Ruiz wrote: >> I actually think, that it would be really nice to do a good GNOME (as >> in the platform) Tutorial based in Vala. Teaching how to create a >> GNOME app from the ground up (using GtkBuilder, database access, > > Speaking of

Re: [Vala] just a suggestion

2009-01-20 Thread Luca Dionisi
On Tue, Jan 20, 2009 at 11:44 AM, Alberto Ruiz wrote: > > Luca, count on me to write some stuff and help with the content index > if someone else (you?) leads the effort (meaning, doing brown > dispatching and reminding people to complete their parts of the book > ;-). > I'm not an expert in writ

Re: [Vala] just a suggestion

2009-01-20 Thread Frederik
Alberto Ruiz wrote: > I actually think, that it would be really nice to do a good GNOME (as > in the platform) Tutorial based in Vala. Teaching how to create a > GNOME app from the ground up (using GtkBuilder, database access, Speaking of database access: does anyone know if there are any Vala bin

Re: [Vala] just a suggestion

2009-01-20 Thread Alberto Ruiz
2009/1/20 Karl Lattimer : > On Tue, 2009-01-20 at 09:44 +0700, Hans Baier wrote: >> > I still have a long way to learn Vala. >> > Since someone is successfully using Vala in a number >> > of projects I think they already have a good knowledge >> > of common pitfalls, best practices and the like. >>

Re: [Vala] just a suggestion

2009-01-20 Thread devros
I would be in on this. Still learning but if its going to speed up the process I would love to help out any way I can. Regards, Srecko On Mon, 2009-01-19 at 21:30 -0500, Yu Feng wrote: > On Mon, 2009-01-19 at 15:44 +0100, Luca Dionisi wrote: > > On Mon, Jan 19, 2009 at 3:25 PM, Alberto Ruiz wro

Re: [Vala] Generated librsvg-bindings for vala

2009-01-20 Thread Frederik
Hans Baier wrote: > Hi, > > I just generated librsvg-bindings. > the output of vapigen needed some manual tweaking, > but now it seems to run... > > I hope this is useful, > and maybe can be contributed. > > License: public domain. > > Cheers, > Hans Hi, I think the Handle methods should be i

Re: [Vala] just a suggestion

2009-01-20 Thread Karl Lattimer
On Tue, 2009-01-20 at 09:44 +0700, Hans Baier wrote: > > I still have a long way to learn Vala. > > Since someone is successfully using Vala in a number > > of projects I think they already have a good knowledge > > of common pitfalls, best practices and the like. > > Writing a book is one of the

[Vala] Generated librsvg-bindings for vala

2009-01-20 Thread Hans Baier
Hi, I just generated librsvg-bindings. the output of vapigen needed some manual tweaking, but now it seems to run... I hope this is useful, and maybe can be contributed. License: public domain. Cheers, Hans librsvg-2.0.vapi Description: Binary data