mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
Userland: Turn all application menus into window menus :^)
This commit is contained in:
parent
fcc8e3484f
commit
78b12e1521
47 changed files with 100 additions and 110 deletions
|
@ -87,7 +87,7 @@ int main(int argc, char** argv)
|
|||
|
||||
auto menubar = GUI::MenuBar::construct();
|
||||
text_widget.initialize_menubar(menubar);
|
||||
app->set_menubar(menubar);
|
||||
window->set_menubar(menubar);
|
||||
|
||||
if (file_to_edit)
|
||||
if (!text_widget.open_file(file_to_edit))
|
||||
|
@ -101,5 +101,7 @@ int main(int argc, char** argv)
|
|||
window->show();
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
|
||||
window->set_menubar(menubar);
|
||||
|
||||
return app->exec();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue