summaryrefslogtreecommitdiff
path: root/src/contacts-contact-pane.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/contacts-contact-pane.vala')
-rw-r--r--src/contacts-contact-pane.vala12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 1a21557..cf1d8aa 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -40,6 +40,8 @@ public class Contacts.ContactPane : Stack {
[GtkChild]
private ScrolledWindow contact_sheet_page;
+ [GtkChild]
+ private Container contact_sheet_container;
private ContactSheet sheet;
[GtkChild]
@@ -197,17 +199,9 @@ public class Contacts.ContactPane : Stack {
this.sheet.vexpand = true;
this.sheet.margin = 36;
this.sheet.set_margin_bottom (24);
+ this.contact_sheet_container.add (this.sheet);
- var contact_sheet_container = new MaxWidthBin ();
- contact_sheet_container.max_width = 600;
- contact_sheet_container.show ();
- contact_sheet_container.add (this.sheet);
-
- this.contact_sheet_page.add (contact_sheet_container);
this.sheet.set_focus_vadjustment (this.contact_sheet_page.get_vadjustment ());
-
- this.contact_sheet_page.get_child ().get_style_context ().add_class ("contacts-main-view");
- this.contact_sheet_page.get_child ().get_style_context ().add_class ("view");
}
void on_add_detail (GLib.SimpleAction action, GLib.Variant? parameter) {