From 1f7fb26ceaa5d05c4c62cc6d110d5344708ab468 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 28 Apr 2025 15:46:25 +0200 Subject: demo: add simple demo application --- demo/src/main.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 demo/src/main.cpp (limited to 'demo/src/main.cpp') diff --git a/demo/src/main.cpp b/demo/src/main.cpp new file mode 100644 index 0000000..bb8a991 --- /dev/null +++ b/demo/src/main.cpp @@ -0,0 +1,18 @@ +#include + +#include +#include + +auto main(int argc, char ** argv) -> int +{ + auto app = Adwaita::Application::create("ch.arknet.libadwaitamm.demo", Gtk::Application::Flags::NON_UNIQUE); + + app->signal_startup().connect([app] { + auto window = new Adwaita::ApplicationWindow{*app}; + window->present(); + + app->signal_shutdown().connect([window] { delete window; }); + }); + + return app->run(argc, argv); +} \ No newline at end of file -- cgit v1.2.3