blob: 151fe2178410a9e9f0678aca6c82ccec3aaf1045 (
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
|
/*
* Copyright (c) 2021, The SerenityOS developers
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "MailSettingsWindow.h"
#include <LibGUI/Application.h>
#include <LibGUI/Icon.h>
#include <unistd.h>
int main(int argc, char** argv)
{
if (pledge("stdio rpath cpath wpath recvfd sendfd unix proc exec", nullptr) < 0) {
perror("pledge");
return 1;
}
auto app = GUI::Application::construct(argc, argv);
if (pledge("stdio rpath cpath wpath recvfd sendfd proc exec", nullptr) < 0) {
perror("pledge");
return 1;
}
auto app_icon = GUI::Icon::default_icon("app-mail-settings");
auto window = MailSettingsWindow::construct();
window->set_title("Mail Settings");
window->resize(400, 480);
window->set_resizable(false);
window->set_minimizable(false);
window->set_icon(app_icon.bitmap_for_size(16));
window->show();
return app->exec();
}
|