From 86a648f47a7504f95d28ea3af102797e905a1d9b Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Wed, 25 Apr 2018 08:26:41 +0200 Subject: ContactForm: use a common container Grid. This is already a common structure of both the ContactEditor and the ContactSheet. By declaring this in the parent class, we can freely make changes while make sure it's consistent over both classes. --- data/contacts.gresource.xml | 2 +- data/ui/contacts-contact-editor.ui | 22 ---------------------- data/ui/contacts-contact-form.ui | 35 +++++++++++++++++++++++++++++++++++ data/ui/contacts-contact-sheet.ui | 29 ----------------------------- data/ui/style.css | 4 ++-- src/contacts-contact-editor.vala | 19 ++++--------------- src/contacts-contact-form.vala | 11 +++++++++++ src/contacts-contact-sheet.vala | 3 --- 8 files changed, 53 insertions(+), 72 deletions(-) create mode 100644 data/ui/contacts-contact-form.ui delete mode 100644 data/ui/contacts-contact-sheet.ui diff --git a/data/contacts.gresource.xml b/data/contacts.gresource.xml index 6564cfd..30c7fc3 100644 --- a/data/contacts.gresource.xml +++ b/data/contacts.gresource.xml @@ -7,8 +7,8 @@ ui/contacts-accounts-list.ui ui/contacts-avatar-selector.ui ui/contacts-contact-editor.ui + ui/contacts-contact-form.ui ui/contacts-contact-pane.ui - ui/contacts-contact-sheet.ui ui/contacts-crop-cheese-dialog.ui ui/contacts-in-app-notification.ui ui/contacts-link-suggestion-grid.ui diff --git a/data/ui/contacts-contact-editor.ui b/data/ui/contacts-contact-editor.ui index 4f181e8..a601209 100644 --- a/data/ui/contacts-contact-editor.ui +++ b/data/ui/contacts-contact-editor.ui @@ -52,28 +52,6 @@