[gnome-contacts] Make labels in contact-sheet selectable



commit 8d5ba41abd83a8632fb7186a59ed9c9e6c0d3869
Author: Jeena <hello jeena net>
Date:   Tue Aug 15 16:53:05 2017 +0200

    Make labels in contact-sheet selectable
    
    Right now to be able to copy & paste a name, address or telephone
    number one has to change to edit mode, select the text and then
    copy it. This is not a good UI, therefor thes patch makes the labels
    in the contact-sheet selectable. This way the user doesn't have to
    change to edit mode to be able to copy & paste the information.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710485

 src/contacts-contact-sheet.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact-sheet.vala b/src/contacts-contact-sheet.vala
index 37b7330..bbeb9ba 100644
--- a/src/contacts-contact-sheet.vala
+++ b/src/contacts-contact-sheet.vala
@@ -76,6 +76,7 @@ public class Contacts.ContactSheet : Grid {
     value_label.set_halign (Align.START);
     value_label.set_ellipsize (Pango.EllipsizeMode.END);
     value_label.wrap_mode = Pango.WrapMode.CHAR;
+    value_label.set_selectable (true);
 
     /* FIXME: hardcode gap to match the button size */
     type_label.margin_top = 3;
@@ -111,6 +112,7 @@ public class Contacts.ContactSheet : Grid {
     name_label.margin_start = 6;
     name_label.set_ellipsize (Pango.EllipsizeMode.END);
     name_label.xalign = 0.0f;
+    name_label.set_selectable (true);
 
     c.keep_widget_uptodate (name_label, (w) => {
        (w as Label).set_markup (Markup.printf_escaped ("<span font='16'>%s</span>", c.display_name));


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