[gnome-contacts] ContactEditor: remove redundant hcenter.



commit 70f36bc355ddf53e600482f30416c0b796381597
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Thu Jan 18 17:10:46 2018 +0100

    ContactEditor: remove redundant hcenter.

 src/contacts-contact-editor.vala |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/contacts-contact-editor.vala b/src/contacts-contact-editor.vala
index 3b88b8c..4b8a656 100644
--- a/src/contacts-contact-editor.vala
+++ b/src/contacts-contact-editor.vala
@@ -761,10 +761,6 @@ public class Contacts.ContactEditor : Grid {
   }
 
   public ContactEditor (SimpleActionGroup editor_actions) {
-    var hcenter = new Center ();
-    hcenter.max_width = 600;
-    hcenter.xalign = 0.0;
-
     this.container_grid = new Grid ();
     this.container_grid.set_row_spacing (12);
     this.container_grid.set_column_spacing (12);
@@ -773,8 +769,7 @@ public class Contacts.ContactEditor : Grid {
     this.container_grid.margin = 36;
     this.container_grid.set_margin_bottom (24);
 
-    hcenter.add (this.container_grid);
-    this.main_sw.add (hcenter);
+    this.main_sw.add (this.container_grid);
     this.container_grid.set_focus_vadjustment (this.main_sw.get_vadjustment ());
 
     this.main_sw.get_child ().get_style_context ().add_class ("contacts-main-view");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]