mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibGUI: Make GMenu inherit from CObject
This is primarily to make it possible to pass a GMenu* where a CObject* is expected.
This commit is contained in:
parent
e9dda8d592
commit
fd5eb79d19
Notes:
sideshowbarker
2024-07-19 10:54:17 +09:00
Author: https://github.com/awesomekling
Commit: fd5eb79d19
39 changed files with 88 additions and 86 deletions
|
@ -24,7 +24,7 @@ int main(int argc, char** argv)
|
|||
window->set_icon(GraphicsBitmap::load_from_file("/res/icons/16x16/app-sound-player.png"));
|
||||
|
||||
auto menubar = make<GMenuBar>();
|
||||
auto app_menu = make<GMenu>("SoundPlayer");
|
||||
auto app_menu = GMenu::construct("SoundPlayer");
|
||||
auto player = SoundPlayerWidget::construct(window, audio_client);
|
||||
|
||||
if (argc > 1) {
|
||||
|
@ -51,7 +51,7 @@ int main(int argc, char** argv)
|
|||
app.quit();
|
||||
}));
|
||||
|
||||
auto help_menu = make<GMenu>("Help");
|
||||
auto help_menu = GMenu::construct("Help");
|
||||
help_menu->add_action(GAction::create("About", [](auto&) {
|
||||
GAboutDialog::show("SoundPlayer", GraphicsBitmap::load_from_file("/res/icons/32x32/app-sound-player.png"));
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue