diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-04 20:01:24 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-04 20:01:24 +0200 |
| commit | c900e09ec994a928b88112e379d334f03175ebff (patch) | |
| tree | a23d0f1919e9f55cf517aad9ac313f92c31ba2c3 /adw/include | |
| parent | fe21003777718efac8743bf99c5388b3d6477be2 (diff) | |
| download | turns-c900e09ec994a928b88112e379d334f03175ebff.tar.xz turns-c900e09ec994a928b88112e379d334f03175ebff.zip | |
adw: move ResponseAppearance
Diffstat (limited to 'adw/include')
| -rw-r--r-- | adw/include/adwaitamm/alertdialog.hpp | 9 | ||||
| -rw-r--r-- | adw/include/adwaitamm/enums.hpp | 8 |
2 files changed, 10 insertions, 7 deletions
diff --git a/adw/include/adwaitamm/alertdialog.hpp b/adw/include/adwaitamm/alertdialog.hpp index 8608cc6..2a34a45 100644 --- a/adw/include/adwaitamm/alertdialog.hpp +++ b/adw/include/adwaitamm/alertdialog.hpp @@ -22,6 +22,8 @@ using AdwAlertDialogClass = struct _AdwAlertDialogClass; namespace Adwaita { + enum struct ResponseAppearance; + struct AlertDialog : Dialog, helpers::gobj_mixin<AlertDialog, AdwAlertDialog> { @@ -38,13 +40,6 @@ namespace Adwaita auto static wrap_new(GObject * object) -> Glib::ObjectBase *; }; - enum struct ResponseAppearance : int - { - _default, - suggested, - destructive, - }; - using BaseObjectType = Class::BaseObjectType; using BaseClassType = Class::BaseClassType; using CppObjectType = Class::CppObjectType; diff --git a/adw/include/adwaitamm/enums.hpp b/adw/include/adwaitamm/enums.hpp index d19ebc7..9bc9f0e 100644 --- a/adw/include/adwaitamm/enums.hpp +++ b/adw/include/adwaitamm/enums.hpp @@ -28,6 +28,13 @@ namespace Adwaita PreferDark, ForceDark, }; + + enum struct ResponseAppearance + { + Default, + Suggested, + Destructive, + }; } // namespace Adwaita namespace Glib @@ -43,6 +50,7 @@ namespace Glib VALUE_SPECIALIZATION(AccentColor); VALUE_SPECIALIZATION(ColorScheme); + VALUE_SPECIALIZATION(ResponseAppearance); #undef VALUE_SPECIALIZATION |
