ContactPane: provide API to handle inline contact creation

This will be used from Window till we can remove all the logic from ContactPane
This commit is contained in:
Erick Pérez Castellanos 2014-08-10 13:50:13 -04:00
parent 30a91bda9e
commit a71d4bb743

View file

@ -396,4 +396,25 @@ public class Contacts.ContactPane : Notebook {
set_current_page (1);
}
}
public void new_contact () {
on_edit_mode = true;
sheet.clear ();
if (suggestion_grid != null) {
suggestion_grid.destroy ();
suggestion_grid = null;
}
editor.set_new_contact ();
set_current_page (2);
}
public void create_contact () {
on_edit_mode = false;
set_current_page (1);
debug ("called contact creation statement");
}
}