|
@@ -10,11 +10,22 @@
|
|
#include <LibGUI/GStatusBar.h>
|
|
#include <LibGUI/GStatusBar.h>
|
|
#include <LibGUI/GTableView.h>
|
|
#include <LibGUI/GTableView.h>
|
|
#include <LibGUI/GWindow.h>
|
|
#include <LibGUI/GWindow.h>
|
|
|
|
+#include <stdio.h>
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
int main(int argc, char** argv)
|
|
{
|
|
{
|
|
|
|
+ if (pledge("stdio dns inet shared_buffer rpath cpath fattr", nullptr) < 0) {
|
|
|
|
+ perror("pledge");
|
|
|
|
+ return 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
GApplication app(argc, argv);
|
|
GApplication app(argc, argv);
|
|
|
|
|
|
|
|
+ if (pledge("stdio dns inet shared_buffer rpath", nullptr) < 0) {
|
|
|
|
+ perror("pledge");
|
|
|
|
+ return 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
auto window = GWindow::construct();
|
|
auto window = GWindow::construct();
|
|
window->set_title("ChanViewer");
|
|
window->set_title("ChanViewer");
|
|
window->set_rect(100, 100, 800, 500);
|
|
window->set_rect(100, 100, 800, 500);
|