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 | 823220763f9a7cdee60bc1c77903ca9d2869e426 (patch) | |
| tree | 4a56d08e67c074e35d038a005282af5a3dfb836b /include/adwaitamm/toastoverlay.hpp | |
| parent | f95d76f5069d5c4cbb08b18145e24ed13a5fffc2 (diff) | |
| download | libadwaitamm-823220763f9a7cdee60bc1c77903ca9d2869e426.tar.xz libadwaitamm-823220763f9a7cdee60bc1c77903ca9d2869e426.zip | |
adw: implement missing ToastOverlay members
Diffstat (limited to 'include/adwaitamm/toastoverlay.hpp')
| -rw-r--r-- | include/adwaitamm/toastoverlay.hpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/include/adwaitamm/toastoverlay.hpp b/include/adwaitamm/toastoverlay.hpp index f4d54cb..9872c1b 100644 --- a/include/adwaitamm/toastoverlay.hpp +++ b/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 |
