diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-03-28 07:49:04 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-03-28 07:49:04 +0100 |
| commit | b7da16d2dda3d90dbc47c4093efe37d4d5c92f27 (patch) | |
| tree | 31612a8fe027f3434d2b1220fa45657ebc6f6410 /include/turns/adw/toastoverlay.hpp | |
| parent | 6bcf6c01484c580b7b5846f9b0593e2b499d5aee (diff) | |
| download | libadwaitamm-b7da16d2dda3d90dbc47c4093efe37d4d5c92f27.tar.xz libadwaitamm-b7da16d2dda3d90dbc47c4093efe37d4d5c92f27.zip | |
adw: clean up wrap functions
Diffstat (limited to 'include/turns/adw/toastoverlay.hpp')
| -rw-r--r-- | include/turns/adw/toastoverlay.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/turns/adw/toastoverlay.hpp b/include/turns/adw/toastoverlay.hpp index 49f6a59..7560c0d 100644 --- a/include/turns/adw/toastoverlay.hpp +++ b/include/turns/adw/toastoverlay.hpp @@ -4,10 +4,15 @@ #include "turns/adw/helpers/gobj_mixin.hpp" #include "turns/adw/helpers/properties.hpp" +#include <glibmm/class.h> +#include <glibmm/object.h> +#include <glibmm/objectbase.h> #include <glibmm/refptr.h> #include <gtkmm/widget.h> +#include <glib-object.h> + #define _ADWAITA_INSIDE #include <adw-toast-overlay.h> #undef _ADWAITA_INSIDE @@ -48,7 +53,7 @@ namespace turns::adw auto static get_type() -> GType; auto static get_base_type() -> GType; - auto add(struct Toast && toast) -> void; + auto add(Glib::RefPtr<struct Toast> const & toast) -> void; auto property_child(this auto && self); @@ -66,7 +71,7 @@ namespace turns::adw namespace Glib { - auto wrap(AdwToastOverlay * object, bool copy = false) -> Glib::RefPtr<turns::adw::ToastOverlay>; + auto wrap(AdwToastOverlay * object, bool copy = false) -> turns::adw::ToastOverlay *; } // namespace Glib #endif
\ No newline at end of file |
