mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
PaintBrush: Exit the event loop on main window close.
This commit is contained in:
parent
b312215d33
commit
0d1ad84656
Notes:
sideshowbarker
2024-07-19 13:05:20 +09:00
Author: https://github.com/awesomekling
Commit: 0d1ad84656
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ int main(int argc, char** argv)
|
||||||
auto* window = new GWindow;
|
auto* window = new GWindow;
|
||||||
window->set_title("PaintBrush");
|
window->set_title("PaintBrush");
|
||||||
window->set_rect(100, 100, 640, 480);
|
window->set_rect(100, 100, 640, 480);
|
||||||
|
window->set_should_exit_event_loop_on_close(true);
|
||||||
|
|
||||||
auto* horizontal_container = new GWidget(nullptr);
|
auto* horizontal_container = new GWidget(nullptr);
|
||||||
window->set_main_widget(horizontal_container);
|
window->set_main_widget(horizontal_container);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue