mirror of
https://github.com/RGBCube/serenity
synced 2026-01-16 17:21:00 +00:00
This allows us to construct menus in a more natural way:
auto& file_menu = menubar->add_menu("File");
file_menu.add_action(...);
Instead of the old way:
auto file_menu = GUI::Menu::construct();
file_menu->add_action(...);
menubar->add_menu(file_menu);
|
||
|---|---|---|
| .. | ||
| Minesweeper | ||
| Snake | ||
| Solitaire | ||
| Makefile | ||