LibGUI: Simplify GCommonActions a bit

Use the same callback signature as GAction so we can just forward it
to GAction instead of chaining callbacks.
This commit is contained in:
Andreas Kling 2019-09-14 22:10:44 +02:00
parent b7bedab28a
commit e83390387c
Notes: sideshowbarker 2024-07-19 12:06:36 +09:00
14 changed files with 45 additions and 65 deletions

View file

@ -139,7 +139,7 @@ int main(int argc, char** argv)
auto menubar = make<GMenuBar>();
auto app_menu = make<GMenu>("System Monitor");
app_menu->add_action(GCommonActions::make_quit_action([] {
app_menu->add_action(GCommonActions::make_quit_action([](auto&) {
GApplication::the().quit(0);
return;
}));