1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:47:45 +00:00

WindowServer: More work on the menu system.

Menus are now tied to a Process (by WeakPtr.) This will allow us to pass
notifications to the correct event stream.
This commit is contained in:
Andreas Kling 2019-02-12 08:39:19 +01:00
parent 133706d697
commit 15b4c9f9f1
7 changed files with 43 additions and 39 deletions

View file

@ -79,7 +79,13 @@ int main(int argc, char** argv)
app_menu->add_item(1, "Quit");
menubar->add_menu(move(app_menu));
auto help_menu = make<GMenu>("?");
auto font_menu = make<GMenu>("Font");
font_menu->add_item(30, "Liza 8x10");
font_menu->add_item(31, "LizaRegular 8x10");
font_menu->add_item(32, "LizaBold 8x10");
menubar->add_menu(move(font_menu));
auto help_menu = make<GMenu>("Help");
help_menu->add_item(2, "About");
menubar->add_menu(move(help_menu));