Re: [Vala] Generated vapi file for a library not compilable.

2012-11-28 Thread Axel FILMORE
On Thu, 29 Nov 2012 10:13:40 +0800 PCMan pcman...@gmail.com wrote: Hello, I got another issue with vala. I moved the core part of my program to a separate library, and let the main program call that library. The library itself compiles correctly. However, the genrated vapi file is not

Re: [Vala] Generated vapi file for a library not compilable.

2012-11-28 Thread Axel FILMORE
or my compiler settings. We need a way to generate correct vapi files from vala code directly. So, it seems that it's a bug in valac? I done like this in the library : http://bazaar.launchpad.net/~axel-filmore/valadesktop/spanel-lib/view/head:/src/PanelApplet.vala http://bazaar.launchpad.net/~axel

Re: [Vala] GTK+ Tutorial

2012-08-30 Thread Axel FILMORE
and var in the first chapter to explain things and not using it in other chapters to force newcomers to good practices. :-P :) -- Axel FILMORE ## - Vala Desktop - A New Desktop Written In Vala https://launchpad.net

Re: [Vala] sqlite3_finalize() ??

2012-06-27 Thread Axel FILMORE
It will insert the code automagically for you. There is no finalize function anyway in the Vala object : http://unstable.valadoc.org/#!api=sqlite3/Sqlite.Statement :) -- Axel FILMORE ## https://github.com/afilmore

[Vala] Chain up base constructor troubles with C code...

2012-05-27 Thread Axel FILMORE
(fm_folder_view_new) is not called from Vala code. I tried to use Object (mode: Fm.FolderViewMode.LIST_VIEW); but mode is not a property and it fails. Is there a way so that when doing var = new Manager.FolderView (); the base function fm_folder_view_new is called ? Thanks. :) -- Axel

Re: [Vala] Chain up base constructor troubles with C code...

2012-05-27 Thread Axel FILMORE
The Terminal : http://pix.toile-libre.org/upload/original/1338137023.png Great information, thanks a lot, I'm not very familiar with GObject yet and I often have that kind of troubles with derived classes. Thank you, best regards. :) -- Axel FILMORE

[Vala] Passing a callback function as an argument and connect to activate signal, cannot convert error....

2012-04-27 Thread Axel FILMORE
action) { } } } But I try to add some actions dynamically so I'd like to pass the callback as an argument. What I'm doing wrong ? :) -- Axel FILMORE ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala

Re: [Vala] Passing a callback function as an argument and connect to activate signal, cannot convert error....

2012-04-27 Thread Axel FILMORE
Thanks Luca, it works great. Marvelous. :) On 27/04/2012 20:36, Luca Bruno wrote: On Fri, Apr 27, 2012 at 7:15 PM, Axel FILMORE axel.film...@gmail.com mailto:axel.film...@gmail.com wrote: But I try to add some actions dynamically so I'd like to pass the callback as an argument

[Vala] cannot convert to a pointer type error when passing Gdk.MotionEvent

2012-03-28 Thread Axel FILMORE
); } That seems to be the same issue than reported here : https://mail.gnome.org/archives/vala-list/2009-August/msg7.html Is it something wrong I'm doing ? Does anybody know a workaround ? Regards. -- Axel FILMORE ___ vala-list mailing list vala-list

Re: [Vala] cannot convert to a pointer type error when passing Gdk.MotionEvent

2012-03-28 Thread Axel FILMORE
worked. Thanks again. :-) On 28/03/2012 23:51, Eric Gregory wrote: On Wed, Mar 28, 2012 at 2:38 PM, Axel FILMORE axel.film...@gmail.com mailto:axel.film...@gmail.com wrote: Hi there, I can't get the following code to compile with Vala : private bool on_motion_notify (Gdk.EventMotion

[Vala] Compilation error using XClientMessageEvent

2012-01-13 Thread Axel FILMORE
*/ public unowned Display display;/* Display the event was read from */ public Window window; public Atom message_type; public int format; public ClientMessageEventData data; } I'm missing something, any help would be appreciated. Thanks. -- Axel

Re: [Vala] X11 and pointers help

2012-01-13 Thread Axel FILMORE
(xdisplay); return result; } int main (int argc, char ** argv) { g_type_init (); return _vala_main (argv, argc); } ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list -- Axel FILMORE

Re: [Vala] Compilation error using XClientMessageEvent

2012-01-13 Thread Axel FILMORE
your own variable of the same type as the anonymous union and have C consider them as the same type. I don't think there's an easy way out of this. The fact that the union is anonymous is beyond vala's control. Does copying the entire ClientMessageEvent work for you? Timo Kluck -- Axel FILMORE

Re: [Vala] Vapi help

2012-01-11 Thread Axel FILMORE
on live.gnome.org, but it's broken.. Thanks. ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list -- Axel FILMORE /* libmenu-cache.vapi generated by vapigen, do not modify. */ namespace Mc { [CCode (cname = MenuCache