[Vala] signal pepare
- From: aconsuegra <aconsuegra estudiantes uci cu>
- To: vala-list gnome org
- Subject: [Vala] signal pepare
- Date: Mon, 01 Jun 2009 15:09:41 -0400
The signal prepare in the Gtk.Assistant wait by a Widget, these say
http://valadoc.org/?pkg=gtk+-2.0&element=Gtk.Assistant.prepare
but when I try the next code don't work.
rad_local is a RadioButton and credenciales is a Dialog
...
[CCode(instance_pos=-1)]
protected void obtener_credenciales(Widget origen){
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??
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]