diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-09 21:05:28 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-09 21:05:44 +0100 |
commit | fd5eb79d1959cbd4b43f624e3e0779e5dd5e0f17 (patch) | |
tree | 5898af512fb7afcdf185cf3dcec6ad449836022f /Userland | |
parent | e9dda8d59261d021d046074f39bc2c0a140a723a (diff) | |
download | serenity-fd5eb79d1959cbd4b43f624e3e0779e5dd5e0f17.zip |
LibGUI: Make GMenu inherit from CObject
This is primarily to make it possible to pass a GMenu* where a CObject*
is expected.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/html.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/html.cpp b/Userland/html.cpp index 33562f42c3..9d2ddf3ae7 100644 --- a/Userland/html.cpp +++ b/Userland/html.cpp @@ -48,13 +48,13 @@ int main(int argc, char** argv) auto menubar = make<GMenuBar>(); - auto app_menu = make<GMenu>("HTML"); + auto app_menu = GMenu::construct("HTML"); app_menu->add_action(GCommonActions::make_quit_action([&](auto&) { app.quit(); })); menubar->add_menu(move(app_menu)); - auto help_menu = make<GMenu>("Help"); + auto help_menu = GMenu::construct("Help"); help_menu->add_action(GAction::create("About", [&](const GAction&) { GAboutDialog::show("HTML", GraphicsBitmap::load_from_file("/res/icons/32x32/filetype-html.png"), window); })); |