From c563d8c5b0a4d46676ea21920381c32dbdd66159 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 4 Apr 2025 21:40:59 +0200 Subject: adw: implement missing ToastOverlay members --- adw/include/adwaitamm/toastoverlay.hpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'adw/include') diff --git a/adw/include/adwaitamm/toastoverlay.hpp b/adw/include/adwaitamm/toastoverlay.hpp index f4d54cb..9872c1b 100644 --- a/adw/include/adwaitamm/toastoverlay.hpp +++ b/adw/include/adwaitamm/toastoverlay.hpp @@ -2,11 +2,11 @@ #define LIBADWAITAMM_TOASTOVERLAY_HPP #include "adwaitamm/helpers/gobj_mixin.hpp" -#include "adwaitamm/helpers/properties.hpp" #include #include #include +#include #include #include @@ -53,20 +53,18 @@ namespace Adwaita auto static get_type() -> GType; auto static get_base_type() -> GType; - auto add(Glib::RefPtr const & toast) -> void; + auto add_toast(struct Toast & toast) -> void; + auto dismiss_all() -> void; + auto get_child() const -> Gtk::Widget *; + auto set_child(Gtk::Widget & value) -> void; - auto property_child(this auto && self); + auto property_child() -> Glib::PropertyProxy; protected: explicit ToastOverlay(Glib::ConstructParams const & params); explicit ToastOverlay(BaseObjectType * gobj); }; - auto ToastOverlay::property_child(this auto && self) - { - return helpers::make_property_proxy(self, "child"); - } - } // namespace Adwaita namespace Glib -- cgit v1.2.3