diff options
Diffstat (limited to 'main/src/ui')
| -rw-r--r-- | main/src/ui/util/preference_group.vala | 12 |
1 files changed, 1 insertions, 11 deletions
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; } |
