[gnome-contacts/wip/exalm/papercuts: 4/6] contact-sheet: Set wrap mode for the name label
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/wip/exalm/papercuts: 4/6] contact-sheet: Set wrap mode for the name label
- Date: Fri, 12 Aug 2022 16:32:26 +0000 (UTC)
commit 63da3cc0ed8a1475737904017dbfcd01ed083602
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Aug 12 16:14:36 2022 +0400
contact-sheet: Set wrap mode for the name label
Don't go offscreen with too long names.
src/contacts-contact-sheet.vala | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/contacts-contact-sheet.vala b/src/contacts-contact-sheet.vala
index 916ddbfa..b6e71bb5 100644
--- a/src/contacts-contact-sheet.vala
+++ b/src/contacts-contact-sheet.vala
@@ -170,6 +170,7 @@ public class Contacts.ContactSheet : Gtk.Grid {
name_label.hexpand = true;
name_label.xalign = 0f;
name_label.wrap = true;
+ name_label.wrap_mode = WORD_CHAR;
name_label.lines = 4;
name_label.width_chars = 10;
name_label.selectable = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]