-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
27 lines (21 loc) · 683 Bytes
/
Copy pathmain.cpp
File metadata and controls
27 lines (21 loc) · 683 Bytes
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
#include "MainWindow.hpp"
#include <gtkmm/application.h>
#include <locale>
#include <iostream>
int main(int argc, char *argv[])
{
try {
std::locale::global(std::locale("C"));
} catch (const std::runtime_error& e) {
std::cerr << "Locale ayarlanamadı: " << e.what() << std::endl;
}
auto app = Gtk::Application::create("tr.numanarifdeniz.stm32terminal");
app->signal_activate().connect([&]() {
auto controller = new MainWindow();
if (controller->get_window()) {
app->add_window(*controller->get_window());
controller->get_window()->present();
}
});
return app->run(argc, argv);
}