So we wait until the user press the "send" button to reply
return counter++;
}
- public string[] get_identity (string identity,
+ public async string[] get_identity (string identity,
string password,
string service)
{
string[3] information = new string[3];
+ main_window.set_callback (get_identity.callback);
+ yield;
+
var id_card = this.main_window.selected_id_card_widget.id_card;
information[0] = "identity";
public IdCardWidget selected_id_card_widget;
+ private SourceFunc callback;
+
private enum Columns
{
IDCARD_COL,
dialog.destroy ();
}
+ public void set_callback (SourceFunc callback)
+ {
+ this.callback = callback;
+ }
+
public void send_identity_cb (IdCardWidget id_card_widget)
{
this.selected_id_card_widget = id_card_widget;
+ this.callback ();
}
private void label_make_bold (Label label)