Re: [Vala] Gtk.TreeView: void* in vapi

2009-09-29 Thread Jan Hudec
On Tue, Sep 29, 2009 at 23:30:27 +0200, JM wrote: > Nobody? I think you choose too incospicious (and incorrect, for that matter -- void * is just fine) subject for a bug. -- Jan 'Bulb' Hudec ___ Vala-li

Re: [Vala] Gtk.TreeView: void* in vapi

2009-09-29 Thread Jan Hudec
On Tue, Sep 29, 2009 at 09:16:24 +0200, JM wrote: > I need some help with the binding for TreeViewRowSeparatorFunc. > Something is wrong here. > If I use > > this.set_row_separator_func(separator_func, null, destrnot); I think there are two parameters too many. It looks like a problem in the .

[Vala] [PATCH] Vala binding for Graphviz library

2009-09-29 Thread Nicolas
Hi Martin, I found on the 'valadoc' project the vapi for the graphviz library. Download the project here: git clone git://git.gnome.org/valadoc See you, Nicolas. Here is a Vala binding for the graphviz library. Hopefully it can be included in Vala GIT so that others can benefit from it as we

Re: [Vala] Gtk.TreeView: void* in vapi

2009-09-29 Thread JM
Nobody? Am Dienstag, den 29.09.2009, 09:16 +0200 schrieb JM: > Hello > > I need some help with the binding for TreeViewRowSeparatorFunc. > Something is wrong here. > If I use > > this.set_row_separator_func(separator_func, null, destrnot); > > in my TreeView widget together with > >

[Vala] Building a build tool

2009-09-29 Thread Phil Housley
I've been messing around with a little build tool recently (well, actually not that recently, but I've not had any time for a couple of months,) aiming to build primarily Vala apps and libraries. Generally it's a bit inspired by Maven, so you declare some units to build, and let the tool decide wha

[Vala] [ANNOUNCE] Valadate 0.1 - Test runner and utilities for vala

2009-09-29 Thread Jan Hudec
Valadate Valadate is a unit testing framework based on GLib Testing. It is primarily intended for testing code written in Vala, but can be used with any GObject-based code. Currently hosted just on Gitorius: http://gitorious.org/valadate Features * Automatic test discovery l

Re: [Vala] Problem with Thread, GTK and signals

2009-09-29 Thread Jan Hudec
On Tue, Sep 29, 2009 at 18:06:17 +0200, Simon Arnaud wrote: > 2009/9/29 Jan Hudec > OK, so I changed the connect to : > > this.download_list.download_progressed += (klass, item_fraction, > total_fraction) => { > GLib.Idle.add( () => { > this.view.item_fraction(item_fraction);

Re: [Vala] Problem with Thread, GTK and signals

2009-09-29 Thread Simon Arnaud
2009/9/29 Jan Hudec > You must not call Gtk functions from different thread. Ever. > > You have to add an idle handler to the default context that will update the > progress-bars. So from your thread you do something like: > > Idle.add(() => { update-progress-bars(); return false; }); > OK, so I

Re: [Vala] bindings from vapi

2009-09-29 Thread Andrés G. Aragoneses
Vlad Grecescu escribió: > On Tue, Sep 29, 2009 at 4:12 PM, John Carr wrote: >> the valac entry point hacked to run my code and then some code to >> generate the ctypes bindings. >> > > Hmm.. someone should step up with a GModule-like proposition for the > vala compiler 'driver'. You are not the o

Re: [Vala] Problem with Thread, GTK and signals

2009-09-29 Thread Jan Hudec
On Tue, Sep 29, 2009 at 16:06:44 +0200, Simon Arnaud wrote: > Hi > > I'm trying to update 2 progress bars from a Thread emitting a progressed > signal. > > The idea is the thread does some long running tasks, and updates a task > progress, and a total progress by emitting a signal. > And I update

Re: [Vala] Problem with Thread, GTK and signals

2009-09-29 Thread Simon Arnaud
2009/9/29 Simon Arnaud > It all works well under Linux, with Vala 0.7.6. However, on windows, the > progress bars stops updating after a few seconds. I tried with 0.7.6 and > 0.7.7, with almost similar results. On 0.7.6, the first progress bar I > update works, but the second stops. On 0.7.7, bot

Re: [Vala] bindings from vapi

2009-09-29 Thread Jan Hudec
On Tue, Sep 29, 2009 at 16:27:56 +0300, Vlad Grecescu wrote: > On Tue, Sep 29, 2009 at 4:12 PM, John Carr wrote: > > the valac entry point hacked to run my code and then some code to > > generate the ctypes bindings. > > Hmm.. someone should step up with a GModule-like proposition for the > vala

[Vala] [PATCH] Vala binding for Graphviz library

2009-09-29 Thread Nicolas
Hi Martin, I found on the 'valadoc' project the vapi for the graphviz library. Download the project here: git clone git://git.gnome.org/valadoc See you, Nicolas. Here is a Vala binding for the graphviz library. Hopefully it can be included in Vala GIT so that others can benefit from it as wel

[Vala] Problem with Thread, GTK and signals

2009-09-29 Thread Simon Arnaud
Hi I'm trying to update 2 progress bars from a Thread emitting a progressed signal. The idea is the thread does some long running tasks, and updates a task progress, and a total progress by emitting a signal. And I update 2 progressbars when this signal is emitted. It all works well under Linux,

Re: [Vala] GLib.Value documentation

2009-09-29 Thread John -
Thanks for all replies. _ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE___ Vala-list mailin

Re: [Vala] GLib.Value documentation

2009-09-29 Thread Mike Massonnet
There is a sample code available here: http://live.gnome.org/Vala/ValueSample Mike 2009/9/29 John - : > > I take a look at http://valadoc.org to search GLib.Value documentation and > don't find anything. > > I try to make some test to trasform int, string, float to GLib.Value and then > to int,

Re: [Vala] bindings from vapi

2009-09-29 Thread Vlad Grecescu
On Tue, Sep 29, 2009 at 4:12 PM, John Carr wrote: > > the valac entry point hacked to run my code and then some code to > generate the ctypes bindings. > Hmm.. someone should step up with a GModule-like proposition for the vala compiler 'driver'. You are not the only one doing this. On Tue, Sep

Re: [Vala] bindings from vapi

2009-09-29 Thread John Carr
On Tue, Sep 29, 2009 at 1:36 PM, pancake wrote: > I am planning to write a tool to generate bindings for Python/.NET/Perl/... > > My idea is to parse the vapi files and based on the signatures of the > functions > create the necesary stub to have the bindings for other languages. GIR and > related

[Vala] bindings from vapi

2009-09-29 Thread pancake
I am planning to write a tool to generate bindings for Python/.NET/Perl/... My idea is to parse the vapi files and based on the signatures of the functions create the necesary stub to have the bindings for other languages. GIR and related are designed for GObject bindings. What I'm thinking i

Re: [Vala] GLib.Value documentation

2009-09-29 Thread Jan Hudec
On Tue, Sep 29, 2009 at 12:32:36 +0200, Florian Brosch wrote: > > I take a look at http://valadoc.org to search GLib.Value documentation and > > don't find anything. > > http://references.valadoc.org/gobject-2.0/GLib.Value.html > > On Tue, Sep 29, 2009 at 12:17 PM, John - wrote: > > I try to ma

Re: [Vala] GLib.Value documentation

2009-09-29 Thread Florian Brosch
> > I take a look at http://valadoc.org to search GLib.Value documentation and > don't find anything. > http://references.valadoc.org/gobject-2.0/GLib.Value.html On Tue, Sep 29, 2009 at 12:17 PM, John - wrote: > > I take a look at http://valadoc.org to search GLib.Value documentation and > don

[Vala] GLib.Value documentation

2009-09-29 Thread John -
I take a look at http://valadoc.org to search GLib.Value documentation and don't find anything. I try to make some test to trasform int, string, float to GLib.Value and then to int, string, float , but i don't find anything. How to know GLib.Value type? How to transform GLib.Value to int, str

Re: [Vala] [ANNOUNCE] Libgee 0.5.0 - GObject collection library

2009-09-29 Thread Didier 'Ptitjes'
Ildar Mulyukov wrote: Ok. But IMHO you should at least note this somewhere. And, better, put a check in configure.in I only changed it on http://live.gnome.org/Libgee. I'm sorry I should have put it in the release notes. My bad. Best regards, Didier.

[Vala] Gtk.TreeView: void* in vapi

2009-09-29 Thread JM
Hello I need some help with the binding for TreeViewRowSeparatorFunc. Something is wrong here. If I use this.set_row_separator_func(separator_func, null, destrnot); in my TreeView widget together with public static void destrnot() { return; //just for testing } priv