From e14c7d933bfa0bdd97781857b9341854232058a2 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sun, 5 Oct 2025 13:35:41 +0200 Subject: Adjust to Adw 1.4: Use specialized ActionRows --- plugins/openpgp/src/contact_details_provider.vala | 4 +--- plugins/openpgp/src/encryption_preferences_entry.vala | 8 -------- 2 files changed, 1 insertion(+), 11 deletions(-) (limited to 'plugins/openpgp/src') diff --git a/plugins/openpgp/src/contact_details_provider.vala b/plugins/openpgp/src/contact_details_provider.vala index 3b727121..353c0b85 100644 --- a/plugins/openpgp/src/contact_details_provider.vala +++ b/plugins/openpgp/src/contact_details_provider.vala @@ -39,9 +39,7 @@ public class ContactDetailsProvider : Plugins.ContactDetailsProvider, Object { var view = new Adw.ActionRow() { title = _("Fingerprint"), subtitle = str, -#if Adw_1_3 - subtitle_selectable = true, -#endif + subtitle_selectable = true }; preferences_group.add(view); diff --git a/plugins/openpgp/src/encryption_preferences_entry.vala b/plugins/openpgp/src/encryption_preferences_entry.vala index 26b982b8..28b253fc 100644 --- a/plugins/openpgp/src/encryption_preferences_entry.vala +++ b/plugins/openpgp/src/encryption_preferences_entry.vala @@ -38,17 +38,9 @@ namespace Dino.Plugins.OpenPgp { } StringList string_list = new StringList(null); -#if Adw_1_4 var drop_down = new Adw.ComboRow() { title = _("Announce key") }; drop_down.model = string_list; preferences_group.add(drop_down); -#else - var view = new Adw.ActionRow() { title = "Announce key" }; - var drop_down = new DropDown(string_list, null) { valign = Align.CENTER }; - view.activatable_widget = drop_down; - view.add_suffix(drop_down); - preferences_group.add(view); -#endif string_list.append(_("Disabled")); for (int i = 0; i < keys.size; i++) { -- cgit v1.3