diff options
| author | fiaxh <git@lightrise.org> | 2025-10-05 13:35:41 +0200 |
|---|---|---|
| committer | fiaxh <git@lightrise.org> | 2025-10-05 17:59:08 +0200 |
| commit | e14c7d933bfa0bdd97781857b9341854232058a2 (patch) | |
| tree | e302c07398dad3196a87a99843d9383ef116cb25 /plugins/openpgp/src | |
| parent | 6d8ccb414529c017ef1b8a52499b7bbdb6432adb (diff) | |
Adjust to Adw 1.4: Use specialized ActionRows
Diffstat (limited to 'plugins/openpgp/src')
| -rw-r--r-- | plugins/openpgp/src/contact_details_provider.vala | 4 | ||||
| -rw-r--r-- | plugins/openpgp/src/encryption_preferences_entry.vala | 8 |
2 files changed, 1 insertions, 11 deletions
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++) { |
