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 --- main/src/ui/util/preference_group.vala | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'main/src/ui/util') diff --git a/main/src/ui/util/preference_group.vala b/main/src/ui/util/preference_group.vala index 6056f2c8..efb5253a 100644 --- a/main/src/ui/util/preference_group.vala +++ b/main/src/ui/util/preference_group.vala @@ -61,9 +61,7 @@ namespace Dino.Ui.Util { var view = new Adw.ActionRow() { title = row_text.title, subtitle = row_text.text, -#if Adw_1_3 - subtitle_selectable = true, -#endif + subtitle_selectable = true }; view.add_css_class("property"); @@ -88,17 +86,9 @@ namespace Dino.Ui.Util { foreach (string text in combobox_view_model.items) { string_list.append(text); } -#if Adw_1_4 var view = new Adw.ComboRow() { title = combobox_view_model.title }; view.model = string_list; combobox_view_model.bind_property("active-item", view, "selected", BindingFlags.SYNC_CREATE | BindingFlags.BIDIRECTIONAL); -#else - var view = new Adw.ActionRow() { title = combobox_view_model.title }; - var drop_down = new DropDown(string_list, null) { valign = Align.CENTER }; - combobox_view_model.bind_property("active-item", drop_down, "selected", BindingFlags.SYNC_CREATE | BindingFlags.BIDIRECTIONAL); - view.activatable_widget = drop_down; - view.add_suffix(drop_down); -#endif return view; } -- cgit v1.3