mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +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
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -125,15 +125,6 @@ void Application::quit(int exit_code)
|
|||
m_event_loop->quit(exit_code);
|
||||
}
|
||||
|
||||
void Application::set_menubar(RefPtr<MenuBar> menubar)
|
||||
{
|
||||
if (m_menubar)
|
||||
m_menubar->notify_removed_from_application({});
|
||||
m_menubar = move(menubar);
|
||||
if (m_menubar)
|
||||
m_menubar->notify_added_to_application({});
|
||||
}
|
||||
|
||||
void Application::register_global_shortcut_action(Badge<Action>, Action& action)
|
||||
{
|
||||
m_global_shortcut_actions.set(action.shortcut(), &action);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue