Re: [Vala] About gnome applet example....
- From: Andrea Del Signore <sejerpz tin it>
- To: heimdall_spe <heimdall_spe yahoo fr>
- Cc: Vala ML <vala-list gnome org>
- Subject: Re: [Vala] About gnome applet example....
- Date: Sun, 09 Mar 2008 21:35:09 +0100
On Sun, 2008-03-09 at 18:30 +0100, heimdall_spe wrote:
Hi everybody,
Hi Heimdall,
[muted]
My terminal output :
heimdall lianli:~/Programmation/Vala$ valac --pkg gtk+-2.0 --pkg
libpanelapplet-2.0 -o pannel_applet pannel_applet.vala
pannel_applet.c: In function «main_applet_main":
pannel_applet.c:30: attention : passing argument 6 of
«gnome_program_init" makes pointer from integer without a cast
pannel_applet.c:31: erreur: expected expression before «)" token
pannel_applet.c:31: attention : passing argument 3 of
«panel_applet_factory_main" from incompatible pointer type
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)
Error on line 31 is interesting... I suppose it's come from the line 16
in my code :
var ret = Panel.Applet.factory_main ("OAFIID:Vala_Applet_Factory",
typeof(Panel.Applet), MainApplet.panelFactory);
But I'm stuck... and honestly, I don't even have an idea where the
problem is.
Did you any suggestions ?
Maybe I miss something ?
I don't have the code at hand, but I believe that the error comes
form the Gnome init call.
I think that you should just remove the args.length param, so change
var program = Gnome.Program.init ("Vala_Applet", "0",
Gnome.libgnomeui_module, args, args.length, "sm-connect", false);
to
var program = Gnome.Program.init ("Vala_Applet", "0",
Gnome.libgnomeui_module, args, "sm-connect", false);
This is because vala libgnome bindings were fixed in 0.1.7 and the
applet example refers to 0.1.6
Bye,
Andrea
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]