[gnome-contacts] contact-sheet: Don't use markup for name label



commit dcd47710c46bb508f81b1ecf654365e0c6306a32
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Mon Jun 6 13:24:07 2022 +0200

    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.

 src/contacts-contact-sheet.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/contacts-contact-sheet.vala b/src/contacts-contact-sheet.vala
index 3ddc9ef8..1bba207a 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]