>Hi,
> [CCode(instance_pos=-1)]
> protected void obtener_credenciales(Widget origen){
> Did you try without the [CCode] attribute?
> regards
> alberto
>
>
> if(this.rad_local.get_active())
> {
> var credenciales=new DialogoCredenciales();
>
> switch (credenciales.run())
> {
> case ResponseType.ACCEPT:
> stdout.printf("acepto");
> break;
> case ResponseType.CANCEL:
> credenciales.destroy();
> break;
> }
>
> }
>
> }
>
> ...
>
> but if at method I add other parameter with type int,string,bool or
char
> work fine.
>
> Example
>
> [CCode(instance_pos=-1)]
> protected void obtener_credenciales(Widget origen,int pos)
>
> What is the right way??
Hi, I use the [CCode(instance_pos=-1)] atribute because in the doc say
that if you are using glade and want to connect signal with a method
that is part of a class, the connect_signals function only work if have
this atribute ---> [CCode(instance_pos=-1)]
But if I comment the [CCode(instance_pos=-1)] don't work too
pd: Sorry by my bad english
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list