summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2022-06-06 13:24:07 +0200
committerNiels De Graef <nielsdegraef@gmail.com>2022-06-06 13:26:09 +0200
commitdcd47710c46bb508f81b1ecf654365e0c6306a32 (patch)
tree1ba27cf3af64c4dd4d07f0cbd321f620e6e22f3a /src
parent364fffd830efd2d1337139b149b5590686375581 (diff)
downloadgnome-contacts-dcd47710c46bb508f81b1ecf654365e0c6306a32.tar.gz
contact-sheet: Don't use markup for name label
A very long time ago, we used `gtk_label_set_markup()` to nicely format the name of a contact. We changed that quite some time ago however, and we forgot to escape any possible markup characters. Fix it by using the "label" property instead.
Diffstat (limited to 'src')
-rw-r--r--src/contacts-contact-sheet.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contacts-contact-sheet.vala b/src/contacts-contact-sheet.vala
index 3ddc9ef..1bba207 100644
--- a/src/contacts-contact-sheet.vala
+++ b/src/contacts-contact-sheet.vala
@@ -170,7 +170,7 @@ public class Contacts.ContactSheet : Gtk.Grid {
header.append (image_frame);
var name_label = new Gtk.Label ("");
- name_label.set_markup (this.individual.display_name);
+ name_label.label = this.individual.display_name;
name_label.hexpand = true;
name_label.xalign = 0f;
name_label.wrap = true;