mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-05 01:42:54 +00:00
TextEditor: Use pledge()
This commit is contained in:
parent
f187374c1b
commit
2067c003ff
Notes:
sideshowbarker
2024-07-19 10:10:03 +09:00
Author: https://github.com/awesomekling
Commit: 2067c003ff
1 changed files with 11 additions and 0 deletions
|
@ -1,10 +1,21 @@
|
||||||
#include "TextEditorWidget.h"
|
#include "TextEditorWidget.h"
|
||||||
#include <LibDraw/PNGLoader.h>
|
#include <LibDraw/PNGLoader.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
if (pledge("stdio rpath cpath wpath shared_buffer unix fattr", nullptr) < 0) {
|
||||||
|
perror("pledge");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
GApplication app(argc, argv);
|
GApplication app(argc, argv);
|
||||||
|
|
||||||
|
if (pledge("stdio rpath cpath wpath shared_buffer unix", nullptr) < 0) {
|
||||||
|
perror("pledge");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
auto window = GWindow::construct();
|
auto window = GWindow::construct();
|
||||||
window->set_title("Text Editor");
|
window->set_title("Text Editor");
|
||||||
window->set_rect(20, 200, 640, 400);
|
window->set_rect(20, 200, 640, 400);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue