Re: [Vala] Newbie question

2009-10-27 Thread Frederik
Frederik wrote: GCC errors are bugs in the Vala compiler ... or (more likely) bugs in the bindings. ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] [Genie] Using MarkupParser

2009-10-27 Thread Patrick Castle
Abderrahim Kitouni wrote: Hi, 2009/10/25 Patrick Castle lem...@bigpond.com: I've been trying to learn Genie and it's going OK for the moment. However, I was trying to translate a Vala example using MarkupParser in GLib and I was coming unstuck on how to define multiple anonymous functions

Re: [Vala] [Genie] Using MarkupParser

2009-10-27 Thread Nicolas
Hi Patrick, You can use the example from Caleb72: [indent=3] uses Xml class JWMReader : Object path : string init Parser.init() final Parser.cleanup() def run() var doc = Parser.parse_file(path) var node = doc-get_root_element() parse_node(node) def

Re: [Vala] problem with posix profile

2009-10-27 Thread Sergi Alvarez
Yep, the posix profile is experimental and work in progress, I have submitted some patches for it, because I find it interesting for many situations where you dont want to depend on G* stuff, but it lacks many language features. Actually the posix profile is just a subset of the glib one. Feel

Re: [Vala] [Genie] Using MarkupParser

2009-10-27 Thread Patrick Castle
Nicolas wrote: Hi Patrick, You can use the example from Caleb72: [indent=3] uses Xml class JWMReader : Object path : string init Parser.init() final Parser.cleanup() def run() var doc = Parser.parse_file(path) var node = doc-get_root_element()

Re: [Vala] [PATCH] Clean up unused GError in case of catch statement without arguments

2009-10-27 Thread Jürg Billeter
On Sun, 2009-10-25 at 11:21 +0200, Alexander Bokovoy wrote: When catch statement has no arguments, no access to a GError is possible from Vala source code. Therefore, do not create temporary variable which is not used. Also, clear error object as it is not passed upwards then. Thanks, applied

[Vala] Vala dealing with const paramaters

2009-10-27 Thread Gordon Allott
Hi, I'm trying to subclass a Clutter.Actor, which happens to have methods such as void (* allocate) (ClutterActor *actor, const ClutterActorBox *box, ClutterAllocationFlags flags); Which is okay, apart

Re: [Vala] Vala dealing with const paramaters

2009-10-27 Thread Jürg Billeter
On Tue, 2009-10-27 at 16:24 +, Gordon Allott wrote: Hi, I'm trying to subclass a Clutter.Actor, which happens to have methods such as void (* allocate) (ClutterActor *actor, const ClutterActorBox *box,

Re: [Vala] [Genie] Using MarkupParser

2009-10-27 Thread Nicolas
Hey Patrick, I'm not alone going on all interesting forums ! I can't really help you because i'm learning programmation like you. I see on the libxml2 example page a function to clean the Xml.Doc: xmlFreeDoc(yourdoc) But vala has on its libxml2.vapi, this: [CCode (cname = xmlDoc,

[Vala] [patch] G.Scanner

2009-10-27 Thread Xavier Bestel
Hi, could someone apply that please ? Thanks, Xav --- /usr/share/vala/vapi/glib-2.0.vapi.orig 2009-10-20 19:22:51.0 +0200 +++ /usr/share/vala/vapi/glib-2.0.vapi 2009-10-21 17:10:01.0 +0200 @@ -2125,13 +2125,17 @@ public TokenValue next_value;

Re: [Vala] [patch] G.Scanner

2009-10-27 Thread Julian Andres Klode
Am Dienstag, den 27.10.2009, 17:55 +0100 schrieb Xavier Bestel: Hi, could someone apply that please ? Thanks, Xav --- /usr/share/vala/vapi/glib-2.0.vapi.orig 2009-10-20 19:22:51.0 +0200 +++ /usr/share/vala/vapi/glib-2.0.vapi2009-10-21 17:10:01.0

[Vala] Maintaining bindings

2009-10-27 Thread Jürg Billeter
Hi, as my time available for Vala does not grow the same as the number of bindings we ship, I'm looking for a volunteer to take over maintenance of Vala bindings. While there are already many contributors and a few have permission to directly push changes to master, we so far don't have an

Re: [Vala] Maintaining bindings

2009-10-27 Thread Jürg Billeter
On Tue, 2009-10-27 at 19:00 +0100, Jürg Billeter wrote: as my time available for Vala does not grow the same as the number of bindings we ship, I'm looking for a volunteer to take over maintenance of Vala bindings. While there are already many contributors and a few have permission to directly

Re: [Vala] Maintaining bindings

2009-10-27 Thread Julian Andres Klode
Am Dienstag, den 27.10.2009, 19:45 +0100 schrieb Jürg Billeter: On Tue, 2009-10-27 at 19:00 +0100, Jürg Billeter wrote: as my time available for Vala does not grow the same as the number of bindings we ship, I'm looking for a volunteer to take over maintenance of Vala bindings. While there

Re: [Vala] Maintaining bindings

2009-10-27 Thread Zeeshan Ali (Khattak)
On Tue, Oct 27, 2009 at 8:00 PM, Jürg Billeter j...@bitron.ch wrote: Hi, as my time available for Vala does not grow the same as the number of bindings we ship, I'm looking for a volunteer to take over maintenance of Vala bindings. While there are already many contributors and a few have