blob: 546f31e678dd25e59ae354b5952293fea1c3226c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#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>
#include <adwaita.h>
#include <glib-object.h>
namespace turns::adw
{
struct Application_Class
{
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
|