[Vala] [ANNOUNCE] Vala 0.9.7 - Compiler for the GObject type system

2010-08-19 Thread Jürg Billeter
We are pleased to announce version 0.9.7 of Vala, a compiler for the GObject type system. Vala 0.9.7 is now available for download at: http://download.gnome.org/sources/vala/0.9/ Changes since 0.9.6 * Fix regression introduced by codegen refactoring. Vala is a new programming language that a

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

2010-08-19 Thread Ildar Mulyukov
On 19.08.2010 12:54:58, JM wrote: Ok. That sounds reasonable. But there remains the question why I had to call ldconfig for the current release and didn't have to do that for vala releases <= 0.9.4 Ideas? ldconfig is usually called on system boot. Also it is called by package manager on any li

Re: [Vala] valasemanticanalyzer error

2010-08-19 Thread Martin DeMello
Note also that this dies in a different place in 0.92 (last tagged release before the "generic delegates support" feature): $ valac --pkg gee-1.0 test.vala test.vala:23.37-23.37: error: Argument 1: Cannot convert from `G' to `int' a.map( (i) => { return "%d".printf(i); }, b);

Re: [Vala] valasemanticanalyzer error

2010-08-19 Thread Jürg Billeter
On Tue, 2010-08-17 at 18:09 +0530, Martin DeMello wrote: > public interface Enumerable : Iterable { > > public delegate T DFunc(G elem); > > public void map(DFunc fn, Gee.List acc) { > foreach (G i in this) { > acc.add(fn(i)); > } >

Re: [Vala] valasemanticanalyzer error

2010-08-19 Thread Martin DeMello
On Thu, Aug 19, 2010 at 6:39 PM, Jürg Billeter wrote: > On Tue, 2010-08-17 at 18:09 +0530, Martin DeMello wrote: >> public interface Enumerable : Iterable { >> >>       public delegate T DFunc(G elem); >> >>       public void map(DFunc fn, Gee.List acc) { >>               foreach (G i in this) { >

[Vala] Checking if FileInfo is a directory

2010-08-19 Thread matthew
Hi everyone, I'm trying to create a program that will go recursively through the current directory counting the number of lines in each file: http://pastebin.ca/1920108 to check if the current file is a directory I am using this code: File directory = File.new_for_path (path); var

Re: [Vala] Checking if FileInfo is a directory

2010-08-19 Thread JM
I think you have to use 'FILE_ATTRIBUTE_STANDARD_NAME + "," + FILE_ATTRIBUTE_STANDARD_TYPE' instead of 'FILE_ATTRIBUTE_STANDARD_NAME' Regards Jörn > Hi everyone, I'm trying to create a program that will go recursively > through the current directory counting the number of lines in each file: > h

Re: [Vala] Checking if FileInfo is a directory

2010-08-19 Thread JM
Try this: int line_count(string path, string[] extentions) { int lines = 0; try { File directory = File.new_for_path(path); var enumerator = directory.enumerate_children(FILE_ATTRIBUTE_STANDARD_NAME + "," + FILE_ATTRIBUTE_STANDARD_TYPE, FileQueryInfoFlags.NONE,

[Vala] [PATCH] Moving functions between Classes in Metadata files

2010-08-19 Thread Sam Thursfield
On Sun, Jul 11, 2010 at 10:46 PM, tecywiz121 wrote: > Hey! > > I've been working on binding chipmunk, a physics engine, for the past > week and I've run into a bunch of snags.  Chipmunk is not a glib > library, and it doesn't exactly get parsed well by gen-introspect but it > does a enough of a go

[Vala] grabbing keyboard focus with GtkClutterEmbed

2010-08-19 Thread James Moschou
Hello This is probably more of a Gtk question than a Clutter question. I have a GtkClutter.Embed in my application, which has an actor that responds to keyboard events from every key (it's a text view). The problem is that when I press the arrow keys, the focus changes from the actor to the surrou

Re: [Vala] grabbing keyboard focus with GtkClutterEmbed

2010-08-19 Thread James Moschou
SORRY! wrong mailing list ... just ignore this On 20 August 2010 15:53, James Moschou wrote: > Hello > > This is probably more of a Gtk question than a Clutter question. I > have a GtkClutter.Embed in my application, which has an actor that > responds to keyboard events from every key (it's a tex