Create window
This commit is contained in:
parent
5203f3a6fb
commit
86bb9c9a7f
1 changed files with 13 additions and 1 deletions
14
src/main.cpp
14
src/main.cpp
|
@ -1,4 +1,16 @@
|
||||||
|
module;
|
||||||
|
#include <gtkmm.h>
|
||||||
export module xmpp_client.main;
|
export module xmpp_client.main;
|
||||||
import xmpp_client.library;
|
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<MainWindow>(argc, argv);
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in a new issue