[gnome-contacts] sheet: Make the row titles selectable
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] sheet: Make the row titles selectable
- Date: Sun, 13 Mar 2022 13:27:23 +0000 (UTC)
commit 756636b0d719b73c11c0b03eadc2e225fe3c91bc
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sun Mar 13 14:26:36 2022 +0100
sheet: Make the row titles selectable
Fixes https://gitlab.gnome.org/GNOME/gnome-contacts/-/issues/206
src/contacts-contact-sheet.vala | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/contacts-contact-sheet.vala b/src/contacts-contact-sheet.vala
index 6727251a..ad037c5b 100644
--- a/src/contacts-contact-sheet.vala
+++ b/src/contacts-contact-sheet.vala
@@ -19,6 +19,12 @@ using Folks;
public class Contacts.ContactSheetRow : Adw.ActionRow {
+ construct {
+ // FIXME, once we can depend on libadwaita 1.1, do this directly
+ if (this.get_class ().find_property ("title-selectable") != null)
+ this.set_property ("title-selectable", true);
+ }
+
public ContactSheetRow (string property_name, string title, string? subtitle = null) {
unowned var icon_name = Utils.get_icon_name_for_property (property_name);
if (icon_name != null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]