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:
parent
30a91bda9e
commit
a71d4bb743
1 changed files with 21 additions and 0 deletions
|
@ -396,4 +396,25 @@ public class Contacts.ContactPane : Notebook {
|
||||||
set_current_page (1);
|
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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue