diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2018-01-22 22:05:17 +0100 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2018-01-22 22:05:17 +0100 |
commit | a3014aee8d9e7bda52196172a2528d15f261c85b (patch) | |
tree | 33c259c9bd5a71eb8023fb3d3b36b9ee2c8984e6 /src/contacts-utils.vala | |
parent | 608e366266ce62a548399f883256dd6fdf0ed514 (diff) | |
download | gnome-contacts-a3014aee8d9e7bda52196172a2528d15f261c85b.tar.gz |
Center: remove xalign.
It's not used (and shouldn't be, we have halign for that).
Diffstat (limited to 'src/contacts-utils.vala')
-rw-r--r-- | src/contacts-utils.vala | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/contacts-utils.vala b/src/contacts-utils.vala index f3ec1a9..a8042a1 100644 --- a/src/contacts-utils.vala +++ b/src/contacts-utils.vala @@ -71,11 +71,6 @@ namespace Contacts { public class Center : Bin { public int max_width { get; set; } - public double xalign { get; set; } - - public Center () { - this.xalign = 0.5; - } public override void get_preferred_height (out int minimum_height, out int natural_height) { var child = get_child (); @@ -112,7 +107,7 @@ public class Center : Bin { new_alloc = allocation; if (allocation.width > this.max_width) { new_alloc.width = this.max_width; - new_alloc.x = (int) ((allocation.width - this.max_width) * this.xalign) + allocation.x; + new_alloc.x = allocation.x; } var child = get_child (); |