Re: [Vala] Zeitgeist porting

2009-04-03 Thread Jamie McCracken
Why? Whilst it has some interesting ideas, its a mere prototype and is by and large irrelevant to gnome as it stands (and thats true of gnome-shell as well - they are both purely experimental) If the ideas prove worthy it will be rewritten in a non-vm language and will likely use tracker which is

[Vala] Zeitgeist porting

2009-04-03 Thread Daniel Bo
Seif Lotfy is considering porting Zeitgeist (planned to be a core component of Gnome 3.0) from Python to Mono. Someone from the list who knows him might encourage Genie or Vala instead. http://seilo.geekyogre.com/2009/03/gnome-zeitgeist-improving/ Daniel ___

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

2009-04-03 Thread Leonti Bielski
For me tt works only for accessing elements. For example: int[,] some_array = new [2,2]; Makes 2x2 array of ints. int something = some_array[0,0]; But I still cannot resize it :( Leonti On Fri, Apr 3, 2009 at 11:46 PM, Yu Feng wrote: > I remember back in some versions > > array[1, 2] works >

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

2009-04-03 Thread Yu Feng
I remember back in some versions array[1, 2] works Yu On Fri, 2009-04-03 at 21:05 +0200, Leonti Bielski wrote: > It's gotta be a way to do it :( > Maybe by using lists or something similar? > > Leonti > > On Fri, Apr 3, 2009 at 8:01 PM, lariamat wrote: > > Hello > > I guess, it is a bug. > > T

[Vala] Data File I/O R/W+seek+tell

2009-04-03 Thread Charles Hixson
How is one supposed to do random I/O in Vala? The methods I've seen seem to be either read or write, with no mode modifiers. Should I be thinking of something besides "DataFile"? Should I use something besides gio? Or is this just not (yet?) implemented? _

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

2009-04-03 Thread Leonti Bielski
It's gotta be a way to do it :( Maybe by using lists or something similar? Leonti On Fri, Apr 3, 2009 at 8:01 PM, lariamat wrote: > 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.or

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 A

[Vala] Multidimensional arrays - help with using them.

2009-04-03 Thread Leonti Bielski
Hello! I need to use multidimensional array of ints, so this is what I do: int[][] some_array = {}; //declaring an array of int[] int[] some = {1,2,3}; // declaring array of ints some_array += some; // adding this array to 2D array - this works some_array[0] = some; // this doesn't work some_arra

[Vala] class like ABCDefgh demangled to a gtkbuider incompatible way.

2009-04-03 Thread Feng Yu
Hi list, A reminder. Since Vala 0.6.0 classes like ABC.DEfg are demangled into abc_defgh instead of abc_d_efgh, which is the convention of GtkBuilder. Is this a bug or a problem with GtkBuilder? I tried to work this around by specifying lines like [CCode (cname = "UCNGField", cprefix = "ucn_g_

Re: [Vala] trunk broken?

2009-04-03 Thread Feng Yu
But there are bunch of GBoxed derived types in glib.vapi. And on 0.6.0 the code compiles just fine. Is it possible to declare a weak reference to a struct? At least in 0.6.0 I can't assign a null to a weak reference to a struct. But it is possible to do so with a GBoxed derived class. Yu On Fri

Re: [Vala] trunk broken?

2009-04-03 Thread Leonti Bielski
This worked. Thanks! Leonti On Fri, Apr 3, 2009 at 10:58 AM, Jürg Billeter wrote: > On Wed, 2009-04-01 at 18:14 +0200, Leonti Bielski wrote: >> So I'm not the only one :) >> I have similar errors with structs too: >> >> http://pastebin.com/m4693867a >> >> I'm using Enlightenment Elementary bindi

Re: [Vala] trunk broken?

2009-04-03 Thread Jürg Billeter
On Wed, 2009-04-01 at 18:14 +0200, Leonti Bielski wrote: > So I'm not the only one :) > I have similar errors with structs too: > > http://pastebin.com/m4693867a > > I'm using Enlightenment Elementary bindings for Vala. This is an unrelated issue. You have to use the new [CCode (delegat

Re: [Vala] trunk broken?

2009-04-03 Thread Jürg Billeter
On Wed, 2009-04-01 at 11:07 -0400, Feng Yu wrote: > I am working on a fix for struct member method as a delegate. But the > test code entirely fails to compile with lots of gcc errors. I notice > that the types are now declared in both of .h and .c files. and those > in .c files are incomplete. Y