[gnome-contacts] contact-sheet: Set title-selectable property directly



commit 641aa88d1cfb93695cd15f7fed462787917e5f0e
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Tue Aug 9 21:39:59 2022 +0200

    contact-sheet: Set title-selectable property directly
    
    We depend on libadwaita 1.2 now, so we no longer have to check whether
    the property exists already.

 src/contacts-contact-sheet.vala | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/contacts-contact-sheet.vala b/src/contacts-contact-sheet.vala
index 17f6940d..916ddbfa 100644
--- a/src/contacts-contact-sheet.vala
+++ b/src/contacts-contact-sheet.vala
@@ -20,9 +20,7 @@ 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);
+    this.title_selectable = true;
   }
 
   public ContactSheetRow (string property_name, string title, string? subtitle = null) {


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