diff options
author | Erick Pérez Castellanos <erick.red@gmail.com> | 2013-06-03 15:03:41 -0400 |
---|---|---|
committer | Erick Pérez Castellanos <erick.red@gmail.com> | 2013-06-03 15:03:41 -0400 |
commit | e6e6c908204593825d746e20526d95309fb75c82 (patch) | |
tree | f5a8c69e6da5a94bf492626d8b407a6a7c2e2a3a /src/contacts-contact-sheet.vala | |
parent | 59f2f38bf5c5ca9d5965b46c79b900e237013c40 (diff) | |
download | gnome-contacts-e6e6c908204593825d746e20526d95309fb75c82.tar.gz |
Added ellipsize to "Editing ... " label
Fix as well some bugs in the widgets showing the
contacts details related to the same behavior.
Fixed: https://bugzilla.gnome.org/show_bug.cgi?id=701515
Diffstat (limited to 'src/contacts-contact-sheet.vala')
-rw-r--r-- | src/contacts-contact-sheet.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/contacts-contact-sheet.vala b/src/contacts-contact-sheet.vala index cd24dc0..dcfcee4 100644 --- a/src/contacts-contact-sheet.vala +++ b/src/contacts-contact-sheet.vala @@ -37,6 +37,10 @@ public class Contacts.ContactSheet : Grid { attach (value_button, 1, row, 1, 1); row++; + (value_button.get_child () as Label).set_ellipsize (Pango.EllipsizeMode.END); + (value_button.get_child () as Label).wrap_mode = Pango.WrapMode.CHAR; + + return value_button; } @@ -52,6 +56,8 @@ public class Contacts.ContactSheet : Grid { value_label.set_line_wrap (true); value_label.xalign = 0.0f; value_label.set_halign (Align.START); + value_label.set_ellipsize (Pango.EllipsizeMode.END); + value_label.wrap_mode = Pango.WrapMode.CHAR; /* FIXME: hardcode gap to match the button size */ type_label.margin_top = 3; |