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:
parent
133706d697
commit
15b4c9f9f1
7 changed files with 43 additions and 39 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue