From 86bb9c9a7f188275461819b692e30e1af51a4904 Mon Sep 17 00:00:00 2001 From: sha512sum Date: Sun, 25 Aug 2024 13:53:07 +0000 Subject: [PATCH] Create window --- src/main.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 8c50b74..7302cce 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,4 +1,16 @@ +module; +#include export module xmpp_client.main; import xmpp_client.library; -auto main() -> int {}; +struct MainWindow : public Gtk::Window { + MainWindow() { + this->set_title("XMPP Client"); + this->set_default_size(200, 200); + }; +}; + +auto main(int argc, char* argv[]) -> int { + auto app = Gtk::Application::create("org.xmpp_client.xmpp_client"); + return app->make_window_and_run(argc, argv); +};