summaryrefslogtreecommitdiff
path: root/src/contacts-contact-sheet.vala
diff options
context:
space:
mode:
authorErick Pérez Castellanos <erick.red@gmail.com>2014-02-13 19:24:43 -0500
committerErick Pérez Castellanos <erick.red@gmail.com>2014-02-13 19:24:43 -0500
commitd6ba84ea7342665a9e571e5fa7e6d3028dd04633 (patch)
tree2ff6ffc6173fa9fedfc6fe0a24602ff07dc8b253 /src/contacts-contact-sheet.vala
parent4cae8d4267950a02a1f470efd4bbd474b76d19d1 (diff)
downloadgnome-contacts-d6ba84ea7342665a9e571e5fa7e6d3028dd04633.tar.gz
build: remove margin_left/right deprecated calls
Remove some additional code added to deal with locales RTL
Diffstat (limited to 'src/contacts-contact-sheet.vala')
-rw-r--r--src/contacts-contact-sheet.vala15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/contacts-contact-sheet.vala b/src/contacts-contact-sheet.vala
index 9e407d3..8abe69a 100644
--- a/src/contacts-contact-sheet.vala
+++ b/src/contacts-contact-sheet.vala
@@ -61,10 +61,7 @@ public class Contacts.ContactSheet : Grid {
/* FIXME: hardcode gap to match the button size */
type_label.margin_top = 3;
- if (value_label.get_direction () == TextDirection.LTR)
- value_label.margin_left = 6;
- else
- value_label.margin_right = 6;
+ value_label.margin_start = 6;
value_label.margin_top = 3;
value_label.margin_bottom = 3;
@@ -93,10 +90,7 @@ public class Contacts.ContactSheet : Grid {
name_label.set_hexpand (true);
name_label.set_halign (Align.START);
name_label.set_valign (Align.CENTER);
- if (name_label.get_direction () == TextDirection.LTR)
- name_label.margin_left = 6;
- else
- name_label.margin_right = 6;
+ name_label.margin_start = 6;
name_label.set_ellipsize (Pango.EllipsizeMode.END);
name_label.xalign = 0.0f;
@@ -118,10 +112,7 @@ public class Contacts.ContactSheet : Grid {
Contact.format_persona_store_name_for_contact (p)));
store_name.set_halign (Align.START);
store_name.xalign = 0.0f;
- if (store_name.get_direction () == TextDirection.LTR)
- store_name.margin_left = 6;
- else
- store_name.margin_right = 6;
+ store_name.margin_start = 6;
attach (store_name, 0, i, 3, 1);
last_store_position = ++i;
}