diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2024-08-15 11:25:30 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2024-08-15 11:25:30 +0200 |
| commit | 0840ff9a28e627351a520437ec83902d88310fe5 (patch) | |
| tree | f31a81bd29fbdc893d1363ff4eef145d1030f71e /src/wrap_init.cpp | |
| parent | ae57b8d35dc96c022cc34f7f32da4df5ef44b5fe (diff) | |
| download | libadwaitamm-0840ff9a28e627351a520437ec83902d88310fe5.tar.xz libadwaitamm-0840ff9a28e627351a520437ec83902d88310fe5.zip | |
adw: add Toast and ToastOverlay classes
Diffstat (limited to 'src/wrap_init.cpp')
| -rw-r--r-- | src/wrap_init.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/wrap_init.cpp b/src/wrap_init.cpp index 24bfad9..546f31e 100644 --- a/src/wrap_init.cpp +++ b/src/wrap_init.cpp @@ -1,6 +1,8 @@ #include "turns/adw/wrap_init.hpp" #include "turns/adw/application.hpp" +#include "turns/adw/toast.hpp" +#include "turns/adw/toastoverlay.hpp" #include <glibmm/wrap.h> @@ -14,11 +16,25 @@ namespace turns::adw auto static wrap_new(GObject * object) -> Glib::ObjectBase *; }; + struct Toast_Class + { + auto static wrap_new(GObject * object) -> Glib::ObjectBase *; + }; + + struct ToastOverlay_Class + { + auto static wrap_new(GObject * object) -> Glib::ObjectBase *; + }; + auto wrap_init() -> void { adw_init(); Glib::wrap_register(adw_application_get_type(), &Application_Class::wrap_new); g_type_ensure(Application::get_type()); + Glib::wrap_register(adw_toast_get_type(), &Toast_Class::wrap_new); + g_type_ensure(Toast::get_type()); + Glib::wrap_register(adw_toast_overlay_get_type(), &ToastOverlay_Class::wrap_new); + g_type_ensure(ToastOverlay::get_type()); } } // namespace turns::adw
\ No newline at end of file |
