summaryrefslogtreecommitdiff
path: root/src/contacts-contact-form.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/contacts-contact-form.vala')
-rw-r--r--src/contacts-contact-form.vala11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/contacts-contact-form.vala b/src/contacts-contact-form.vala
index 16c0dc9..f44a2fb 100644
--- a/src/contacts-contact-form.vala
+++ b/src/contacts-contact-form.vala
@@ -26,6 +26,7 @@ using Gtk;
* (possibly empty) contact, starting with a header and subsequently iterating
* over the several {@link Folks.Persona}s, displaying their properties.
*/
+[GtkTemplate (ui = "/org/gnome/Contacts/ui/contacts-contact-form.ui")]
public abstract class Contacts.ContactForm : Grid {
protected const string[] SORTED_PROPERTIES = {
@@ -43,8 +44,18 @@ public abstract class Contacts.ContactForm : Grid {
protected Store store;
+ [GtkChild]
+ private ScrolledWindow main_sw;
+
+ [GtkChild]
+ protected Grid container_grid;
protected int last_row = 0;
+ construct {
+ this.container_grid.set_focus_vadjustment (this.main_sw.get_vadjustment ());
+ this.main_sw.get_style_context ().add_class ("contacts-contact-form");
+ }
+
protected string[] sort_persona_properties (string[] props) {
CompareDataFunc<string> compare_properties = (a, b) => {
foreach (var prop in SORTED_PROPERTIES) {