On Sun, 2008-03-09 at 18:30 +0100, heimdall_spe wrote:
> Hi everybody,
Hi Heimdall,

> 
[muted]
> 

> My terminal output :
> 
> [EMAIL PROTECTED]:~/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


_______________________________________________
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to