diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-04 21:40:59 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-04 21:43:26 +0200 |
| commit | c563d8c5b0a4d46676ea21920381c32dbdd66159 (patch) | |
| tree | 10b8594737929637a6e794e453ae4dd054091424 /adw/include/adwaitamm | |
| parent | fa7f0a8f6723dd2d7e00be20516bc8f6b7b8bfa7 (diff) | |
| download | turns-c563d8c5b0a4d46676ea21920381c32dbdd66159.tar.xz turns-c563d8c5b0a4d46676ea21920381c32dbdd66159.zip | |
adw: implement missing ToastOverlay members
Diffstat (limited to 'adw/include/adwaitamm')
| -rw-r--r-- | adw/include/adwaitamm/toastoverlay.hpp | 14 |
1 files changed, 6 insertions, 8 deletions
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 <glibmm/class.h> #include <glibmm/object.h> #include <glibmm/objectbase.h> +#include <glibmm/propertyproxy.h> #include <glibmm/refptr.h> #include <gtkmm/widget.h> @@ -53,20 +53,18 @@ namespace Adwaita auto static get_type() -> GType; auto static get_base_type() -> GType; - auto add(Glib::RefPtr<struct Toast> 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<Gtk::Widget *>; protected: explicit ToastOverlay(Glib::ConstructParams const & params); explicit ToastOverlay(BaseObjectType * gobj); }; - auto ToastOverlay::property_child(this auto && self) - { - return helpers::make_property_proxy<Gtk::Widget *>(self, "child"); - } - } // namespace Adwaita namespace Glib |
