From c900e09ec994a928b88112e379d334f03175ebff Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 4 Apr 2025 20:01:24 +0200 Subject: adw: move ResponseAppearance --- adw/src/alertdialog.cpp | 4 ---- adw/src/enums.cpp | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'adw/src') diff --git a/adw/src/alertdialog.cpp b/adw/src/alertdialog.cpp index ea9cdca..585d9e8 100644 --- a/adw/src/alertdialog.cpp +++ b/adw/src/alertdialog.cpp @@ -29,10 +29,6 @@ namespace Adwaita { - static_assert(static_cast(AlertDialog::ResponseAppearance::_default) == ADW_RESPONSE_DEFAULT); - static_assert(static_cast(AlertDialog::ResponseAppearance::suggested) == ADW_RESPONSE_SUGGESTED); - static_assert(static_cast(AlertDialog::ResponseAppearance::destructive) == ADW_RESPONSE_DESTRUCTIVE); - namespace { auto constinit _class = AlertDialog::Class{}; diff --git a/adw/src/enums.cpp b/adw/src/enums.cpp index 02dd74a..9da6bc1 100644 --- a/adw/src/enums.cpp +++ b/adw/src/enums.cpp @@ -2,6 +2,7 @@ #include +#include #include #include @@ -32,6 +33,10 @@ namespace Adwaita static_assert(matches); static_assert(matches); + static_assert(matches); + static_assert(matches); + static_assert(matches); + } // namespace Adwaita namespace Glib @@ -44,6 +49,7 @@ namespace Glib VALUE_SPECIALIZATION(AccentColor, accent_color) VALUE_SPECIALIZATION(ColorScheme, color_scheme) + VALUE_SPECIALIZATION(ResponseAppearance, response_appearance) #undef VALUE_SPECIALIZATION } // namespace Glib \ No newline at end of file -- cgit v1.2.3