From fd5eb79d1959cbd4b43f624e3e0779e5dd5e0f17 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 9 Dec 2019 21:05:28 +0100 Subject: LibGUI: Make GMenu inherit from CObject This is primarily to make it possible to pass a GMenu* where a CObject* is expected. --- Userland/html.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland') 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(); - auto app_menu = make("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("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); })); -- cgit v1.2.3