summaryrefslogtreecommitdiff
path: root/adw/src
diff options
context:
space:
mode:
Diffstat (limited to 'adw/src')
-rw-r--r--adw/src/alertdialog.cpp4
-rw-r--r--adw/src/enums.cpp6
2 files changed, 6 insertions, 4 deletions
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<int>(AlertDialog::ResponseAppearance::_default) == ADW_RESPONSE_DEFAULT);
- static_assert(static_cast<int>(AlertDialog::ResponseAppearance::suggested) == ADW_RESPONSE_SUGGESTED);
- static_assert(static_cast<int>(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 <adwaitamm/stylemanager.hpp>
+#include <adwaita.h>
#include <glib-object.h>
#include <type_traits>
@@ -32,6 +33,10 @@ namespace Adwaita
static_assert(matches<ColorScheme::PreferDark, ADW_COLOR_SCHEME_PREFER_DARK>);
static_assert(matches<ColorScheme::ForceDark, ADW_COLOR_SCHEME_FORCE_DARK>);
+ static_assert(matches<ResponseAppearance::Default, ADW_RESPONSE_DEFAULT>);
+ static_assert(matches<ResponseAppearance::Suggested, ADW_RESPONSE_SUGGESTED>);
+ static_assert(matches<ResponseAppearance::Destructive, ADW_RESPONSE_DESTRUCTIVE>);
+
} // 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