From ee599d7d62c16bb59603bedb62f03c01504a1893 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 3 Apr 2025 18:41:43 +0200 Subject: adw: prepare files for extraction --- ui/src/widgets/participant_row.cpp | 12 ++++++++---- ui/src/widgets/preferences.cpp | 3 ++- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'ui/src/widgets') diff --git a/ui/src/widgets/participant_row.cpp b/ui/src/widgets/participant_row.cpp index 0a2a3b6..367870a 100644 --- a/ui/src/widgets/participant_row.cpp +++ b/ui/src/widgets/participant_row.cpp @@ -88,9 +88,10 @@ namespace turns::ui::widgets { Glib::Binding::bind_property(participant->property_name(), m_title->property_label(), Glib::Binding::Flags::SYNC_CREATE); - Glib::Binding::bind_property(participant->property_priority(), m_subtitle->property_label(), Glib::Binding::Flags::SYNC_CREATE, [](auto n) { - return std::vformat(_(lang::priority_number), std::make_format_args(n)); - }); + Glib::Binding::bind_property(participant->property_priority(), + m_subtitle->property_label(), + Glib::Binding::Flags::SYNC_CREATE, + [](auto n) { return std::vformat(_(lang::priority_number), std::make_format_args(n)); }); Glib::Binding::bind_property(participant->property_disposition(), m_toggle_defeated->property_css_classes(), @@ -105,7 +106,10 @@ namespace turns::ui::widgets return classes; }); - Glib::Binding::bind_property(participant->property_is_active(), property_css_classes(), Glib::Binding::Flags::SYNC_CREATE, [this](auto value) { + Glib::Binding::bind_property(participant->property_is_active(), + property_css_classes(), + Glib::Binding::Flags::SYNC_CREATE, + [this](auto value) { auto classes = get_css_classes(); if (!value) { diff --git a/ui/src/widgets/preferences.cpp b/ui/src/widgets/preferences.cpp index 6960dcc..7032423 100644 --- a/ui/src/widgets/preferences.cpp +++ b/ui/src/widgets/preferences.cpp @@ -1,6 +1,5 @@ #include "turns/ui/widgets/preferences.hpp" -#include "turns/adw/switchrow.hpp" #include "turns/core/settings.hpp" #include "turns/ui/widgets/template_widget.hpp" @@ -20,6 +19,8 @@ #include #include +#include + #include namespace turns::ui::widgets -- cgit v1.2.3