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
commit 15b4c9f9f1
Notes: sideshowbarker 2024-07-19 15:46:55 +09:00
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));