summaryrefslogtreecommitdiff
path: root/adw/include/adwaitamm/toast.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'adw/include/adwaitamm/toast.hpp')
-rw-r--r--adw/include/adwaitamm/toast.hpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/adw/include/adwaitamm/toast.hpp b/adw/include/adwaitamm/toast.hpp
index 4f69c1e..ba82497 100644
--- a/adw/include/adwaitamm/toast.hpp
+++ b/adw/include/adwaitamm/toast.hpp
@@ -24,6 +24,8 @@ using AdwToast = struct _AdwToast;
namespace Adwaita
{
+ enum struct ToastPriority;
+
struct Toast final : Glib::Object,
helpers::gobj_mixin<Toast, AdwToast>
{
@@ -45,12 +47,6 @@ namespace Adwaita
using CppObjectType = Class::CppObjectType;
using CppClassType = Class;
- enum class Priority
- {
- NORMAL,
- HIGH,
- };
-
using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj;
using helpers::gobj_mixin<CppObjectType, BaseObjectType>::gobj_copy;
@@ -69,7 +65,7 @@ namespace Adwaita
auto get_action_target_value() const -> Glib::VariantBase;
auto get_button_label() const -> Glib::ustring;
auto get_custom_title() const -> Gtk::Widget *;
- auto get_priority() const -> Priority;
+ auto get_priority() const -> ToastPriority;
auto get_timeout() const -> unsigned;
auto get_title() const -> Glib::ustring;
auto get_use_markup() const -> bool;
@@ -78,7 +74,7 @@ namespace Adwaita
auto set_button_label(Glib::ustring value) -> void;
auto set_custom_title(Gtk::Widget * value) -> void;
auto set_detailed_action_name(Glib::ustring value) -> void;
- auto set_priority(Priority value) -> void;
+ auto set_priority(ToastPriority value) -> void;
auto set_timeout(unsigned value) -> void;
auto set_title(Glib::ustring value) -> void;
auto set_use_markup(bool value) -> void;
@@ -87,7 +83,7 @@ namespace Adwaita
auto property_action_target() -> Glib::PropertyProxy<Glib::VariantBase>;
auto property_button_label() -> Glib::PropertyProxy<Glib::ustring>;
auto property_custom_title() -> Glib::PropertyProxy<Gtk::Widget *>;
- auto property_priority() -> Glib::PropertyProxy<Priority>;
+ auto property_priority() -> Glib::PropertyProxy<ToastPriority>;
auto property_timeout() -> Glib::PropertyProxy<unsigned>;
auto property_title() -> Glib::PropertyProxy<Glib::ustring>;
auto property_use_markup() -> Glib::PropertyProxy<bool>;