[Vala] new async gio vapi

2009-09-14 Thread lariamat
Hi all I wonder how the latest changes to the gio vapi have to be used in a program. I have no experience with the other async stuff. How can I connect that to a callback that would handle the GLib.AsyncResult like in http://live.gnome.org/Vala/GIOSamples#head-164983820b65aa689b970b193fec6ddc736817

Re: [Vala] collecting delegates

2009-08-09 Thread lariamat
Thanks for the reply Jiří! That seems to be an usable solution for this problem. I used vala-0.7.5 and git log doesn't look like it has been put into master branch since then. regards, lariamat > That's a bug in Vala. > The problem is that delegate actually consists of two v

[Vala] collecting delegates

2009-08-09 Thread lariamat
Dear List I wanted to check the possibility to put delegates into an array or a GLib.List and then firing them one by one in a foreach way. After some attempts I found a compiling solution that unfortunately does not work. Can anybody tell me what I am doing wrong here? Thanks lariamat public

Re: [Vala] array of strings bug ?

2009-04-10 Thread lariamat
This bug exist for some time http://bugzilla.gnome.org/show_bug.cgi?id=570821 Regards, lariamat Am Freitag, den 10.04.2009, 12:45 +0200 schrieb Roberto Majadas: > Hi people : > > Is this a vala bug ? > > public class ProofClass { > > public string[] str = {}

Re: [Vala] array of strings bug ?

2009-04-10 Thread lariamat
Hi Roberto Your example works only if str array is private (just remove the public) and yes, I think it is a bug. You should file it. Regards, lariamat Am Freitag, den 10.04.2009, 12:45 +0200 schrieb Roberto Majadas: > Hi people : > > Is this a vala bug ? > > public c

Re: [Vala] Multidimensional arrays - help with using them.

2009-04-03 Thread lariamat
Hello I guess, it is a bug. There are several issues with multidimensional arrays: http://bugzilla.gnome.org/show_bug.cgi?id=548428 http://bugzilla.gnome.org/show_bug.cgi?id=548429 http://bugzilla.gnome.org/show_bug.cgi?id=576611 Also using arrays by reference is not working. Regards, lariamat

Re: [Vala] Dynamic arrays in Vala - example for newbie

2009-03-30 Thread lariamat
Sorry, use a = new string[0]; Am Dienstag, den 31.03.2009, 00:54 +0200 schrieb lariamat: > try this: > /--- > string[] a; > a = string[0]; > a += "sometext"; > a += &q

Re: [Vala] Dynamic arrays in Vala - example for newbie

2009-03-30 Thread lariamat
try this: /--- string[] a; a = string[0]; a += "sometext"; a += "sometext1"; a += "sometext2"; ... /----- Regards, lariamat Am Dienstag, den 31.03.2009, 00:14 +0200 schrieb Le

Re: [Vala] how to view Valadoc in Devhelp?

2009-01-24 Thread lariamat
hi adam The content has to be copied to /usr/share/devhelp/books/ Regards, lariamat Am Samstag, den 24.01.2009, 13:58 -0800 schrieb Adam Dingle: > According to the Valadoc wiki page (http://live.gnome.org/Valadoc), > Devhelp integration is "done", and the page contains

Re: [Vala] problem with GNet Connhttpeventresponse

2009-01-22 Thread lariamat
Hi Jezra Also foreach is now working with recent vala for null-terminated arrays. As you are just using and approving the gnet bindings you could post the working vapi to the mailing list or attach it to a bugzilla report as soon as everything is working. Regards lariamat Am Donnerstag, den

Re: [Vala] problem with GNet Connhttpeventresponse

2009-01-21 Thread lariamat
[NoArrayLength] is outdated with current versions of vala. It's [CCode (array_length = false)] now. Regards, Jörn Am Mittwoch, den 21.01.2009, 23:52 +0100 schrieb Frederik: > > Ok, then try putting [NoArrayLength] before each one of those array > fields in the vapi file. Since these are null ter

[Vala] string parameter in static function

2008-12-03 Thread lariamat
I get a strange c compilation warning when using a string as parameter in a static function. When i forward the string to another string everything is OK. (In my program I get this warning from a Gst.TagForeachFunc.) I am using vala 0.5.2 but I also had this warning in previous versions. Here are

Re: [Vala] Drag and Drop

2008-11-08 Thread lariamat
the problem still exists in vala-0.5.1 in class SelectionData: public void set (Gdk.Atom type, int format, uchar[] data); has to be changed to: public void set (Gdk.Atom type, int format, void* data, ulong size); > Ok, this problem is already solved: > > 2008-10-28 Jürg Billeter <[EMAIL

Re: [Vala] How to subclass a Gtk.Label?

2008-10-30 Thread lariamat
"text" should be completely hidden because we have the "set_text"/"get_text" in parallel with the "set_markup". Btw, shouldn't a construction-method with a string as parameter work for the derrived class like for a Gtk.Label? It doesn't. using Gtk; public class MyLabel : Label { } static int ma

[Vala] Offline Bindings Documentation

2008-10-02 Thread lariamat
Is there a offline bindings documentation? Maybe as html? It would be nice to have it locally. Just in case I like to code when traveling. I know it is possible to look into the vapi files, but there are no links. It would be best to have it in devhelp. ___

Re: [Vala] structs and lists

2008-08-04 Thread lariamat
ass(); obj.run(); foreach(XStruct xstr in obj.x_list) stdout.printf("%d \n",xstr.integer); return 0; } } Regards, lariamat Date: Mon, 04 Aug 2008 13:20:27 +0200 From: Roberto Majadas <[EMAIL PROTECTED]> Subject: Re: [Vala] structs and