[Vala] .vapi and GPL

2009-01-31 Thread vasaka
.vapi files are licensed under LGPL license, but some of them defines bindings to kernel api and hence make use of linux headers on stage of compiling generated C code which are GPL. does it mean that those files also should be licensed under GPL or that one can reduce GPL to LGPL since those vapi

Re: [Vala] gnome-db bindings..

2009-01-31 Thread Shawn Ferris
Didn't realize the attachment was so large.. here's just the pertinent parts. On Sat, 2009-01-31 at 09:31 -0700, Shawn Ferris wrote: > Hey All, > > There was talk of people working on bindings for gnome-db. I haven't > seen the results of those on the list so I decided to take a stab again. > Att

Re: [Vala] Type of data in TreeView

2009-01-31 Thread Thomas Chust
Matías De la Puente wrote: > [...] > I want to add any type of data to a TreeView. > What is the best option to do this ? > [...] Hello, the GLib already provides a generic value container: GLib.Value. It should be possible to use that. cu, Thomas -- When C++ is your hammer, every problem loo

[Vala] Type of data in TreeView

2009-01-31 Thread Matías De la Puente
Hello all, I want to add any type of data to a TreeView. What is the best option to do this ? a) a void* type: var tree_store = new TreeStore (2, typeof (string), typeof (void*)); b) a generics type: public class Gen : GLib.Object { private G _data; public void set_data (G data) { _data = d

Re: [Vala] integrate Vala and GTK doc?

2009-01-31 Thread Florian Brosch
Sorry guys, i forgot to send my response to the whole list. I'm about to integrate a wiki into valadoc.org. I think that's the best way to complete the documentation. On Sat, Jan 31, 2009 at 5:01 PM, Ildar Mulyukov wrote: >Hi! > > On 25.01.2009 02:10:58, Adam Dingle wrote: >> >> When I

Re: [Vala] integrate Vala and GTK doc?

2009-01-31 Thread Ildar Mulyukov
Hi! On 25.01.2009 02:10:58, Adam Dingle wrote: When I write GTK code with Vala, I find myself constantly switching back between the C-based GTK documentation (which has C prototypes and lots of helpful explanations) and the Vala binding reference at valadoc.org (which has Vala proto

Re: [Vala] How to wrap select(2)'s fd_set?

2009-01-31 Thread Michael 'Mickey' Lauer
Am Saturday 31 January 2009 11:23:54 schrieb Daniel Svensson: > On Fri, Jan 30, 2009 at 1:20 AM, Michael 'Mickey' Lauer > > wrote: > > I'd like to complete more of the posix wrapper, namely select(2) and the > > required datatypes. The respective man page excerpt is: > > As common use of Vala depe

Re: [Vala] Abstract properties delared in VAPI files

2009-01-31 Thread Jacob Kroon
Ok, hope this test case is ok, I've attached a small library file which I compile with "valac foo-bar.vala --library=foo -C", in order to get .vapi file. Then I run "valac foo.vapi", and I get the same kind of error messages. - Jacob On Sat, 2009-01-31 at 13:22 +0100, Jürg Billeter wrote: > On

Re: [Vala] Abstract properties delared in VAPI files

2009-01-31 Thread Jürg Billeter
On Sat, 2009-01-31 at 13:09 +0100, Jacob Kroon wrote: > Hi. I'm having some problems with latest Vala from git/svn. I have > classes declared with abstract properties in one of my libraries. Valac > can't parse the generated .vapi file for this library though, I get > error messages of the type >

[Vala] Abstract properties delared in VAPI files

2009-01-31 Thread Jacob Kroon
Hi. I'm having some problems with latest Vala from git/svn. I have classes declared with abstract properties in one of my libraries. Valac can't parse the generated .vapi file for this library though, I get error messages of the type Foo.bar: no suitable property found to override where "bar" is

Re: [Vala] How to wrap select(2)'s fd_set?

2009-01-31 Thread Daniel Svensson
On Fri, Jan 30, 2009 at 1:20 AM, Michael 'Mickey' Lauer wrote: > I'd like to complete more of the posix wrapper, namely select(2) and the > required datatypes. The respective man page excerpt is: As common use of Vala depends on GLib, why not use GIOChannels instead? -- Daniel Svensson