From b7da16d2dda3d90dbc47c4093efe37d4d5c92f27 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 28 Mar 2025 07:49:04 +0100 Subject: adw: clean up wrap functions --- include/turns/adw/toast.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/turns/adw/toast.hpp') diff --git a/include/turns/adw/toast.hpp b/include/turns/adw/toast.hpp index 83242c7..80d9b8b 100644 --- a/include/turns/adw/toast.hpp +++ b/include/turns/adw/toast.hpp @@ -5,12 +5,15 @@ #include "turns/adw/helpers/properties.hpp" #include +#include #include #include #include #include +#include + #define _ADWAITA_INSIDE #include #undef _ADWAITA_INSIDE @@ -49,13 +52,13 @@ namespace turns::adw using helpers::gobj_mixin::gobj; using helpers::gobj_mixin::gobj_copy; - explicit Toast(Glib::ustring const & title); Toast(Toast const & other) = delete; Toast(Toast && other) noexcept = default; auto operator=(Toast const & other) noexcept -> Toast & = delete; auto operator=(Toast && other) noexcept -> Toast & = default; + auto static create(Glib::ustring const & title) -> Glib::RefPtr; auto static get_type() -> GType; auto static get_base_type() -> GType; @@ -71,6 +74,7 @@ namespace turns::adw auto property_use_markup(this auto && self); protected: + explicit Toast(Glib::ustring const & title); explicit Toast(Glib::ConstructParams const & params); explicit Toast(BaseObjectType * gobj); }; -- cgit v1.2.3