[gnome-contacts] Changing WrapMode of the Contacts' List name.
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Changing WrapMode of the Contacts' List name.
- Date: Fri, 20 Jan 2012 11:19:19 +0000 (UTC)
commit 5280d3570b5511bd4c298bd4f54a23459825e1b0
Author: Erick PÃrez Castellanos <erick red gmail com>
Date: Thu Jan 19 10:59:44 2012 -0500
Changing WrapMode of the Contacts' List name.
As explained in the bug, the wrapping set to Pango.WrapMode.CHAR makes
some texts look ugly, specially those names truncated at some middle
character. So setting this to Pango.WrapMode.WORD_CHAR, works for names
who can be splitted and when no space is availabe for he full word
fallback to CHAR.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=663249
src/contacts-cell-renderer-shape.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-cell-renderer-shape.vala b/src/contacts-cell-renderer-shape.vala
index 42cc7d2..e86f451 100644
--- a/src/contacts-cell-renderer-shape.vala
+++ b/src/contacts-cell-renderer-shape.vala
@@ -98,7 +98,7 @@ public class Contacts.CellRendererShape : Gtk.CellRenderer {
layout.set_width (width);
- layout.set_wrap (Pango.WrapMode.CHAR);
+ layout.set_wrap (Pango.WrapMode.WORD_CHAR);
layout.set_height (-2);
Pango.Alignment align;
@@ -181,7 +181,7 @@ public class Contacts.CellRendererShape : Gtk.CellRenderer {
layout.set_width (width);
- layout.set_wrap (Pango.WrapMode.CHAR);
+ layout.set_wrap (Pango.WrapMode.WORD_CHAR);
layout.set_height (-1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]