summaryrefslogtreecommitdiff
path: root/Applications/About
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-19 00:01:02 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-19 00:01:02 +0100
commit57ff293a51d97742d50987950c86dfcde55e6ad1 (patch)
tree44cb31375a62808be2b743758bc6c42c574b4afa /Applications/About
parent55aa8190773721f1dc0a3f49bedea6ed8524b318 (diff)
downloadserenity-57ff293a51d97742d50987950c86dfcde55e6ad1.zip
LibGUI: Implement nested event loops to support dialog boxes.
This patch adds a simple GMessageBox that can run in a nested event loop. Here's how you use it: GMessageBox box("Message text here", "Message window title"); int result = box.exec(); The next step is to make the WindowServer respect the modality flag of these windows and prevent interaction with other windows in the same process until the modal window has been closed.
Diffstat (limited to 'Applications/About')
-rw-r--r--Applications/About/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/About/main.cpp b/Applications/About/main.cpp
index b98b4ca496..045b02681d 100644
--- a/Applications/About/main.cpp
+++ b/Applications/About/main.cpp
@@ -14,7 +14,7 @@ int main(int argc, char** argv)
Rect window_rect { 0, 0, 240, 120 };
window_rect.center_within({ 0, 0, 1024, 768 });
window->set_rect(window_rect);
- window->set_should_exit_app_on_close(true);
+ window->set_should_exit_event_loop_on_close(true);
auto* widget = new GWidget;
window->set_main_widget(widget);