mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibGUI: Reduce menu-related header dependencies
This commit is contained in:
parent
9e83bbe1cd
commit
b011ea9962
Notes:
sideshowbarker
2024-07-19 09:19:30 +09:00
Author: https://github.com/awesomekling
Commit: b011ea9962
16 changed files with 32 additions and 10 deletions
|
@ -88,4 +88,14 @@ void MenuItem::update_window_server()
|
|||
WindowServerConnection::the().send_sync<Messages::WindowServer::UpdateMenuItem>(m_menu_id, m_identifier, -1, action.text(), action.is_enabled(), action.is_checkable(), action.is_checkable() ? action.is_checked() : false, shortcut_text);
|
||||
}
|
||||
|
||||
void MenuItem::set_menu_id(Badge<Menu>, unsigned int menu_id)
|
||||
{
|
||||
m_menu_id = menu_id;
|
||||
}
|
||||
|
||||
void MenuItem::set_identifier(Badge<Menu>, unsigned identifier)
|
||||
{
|
||||
m_identifier = identifier;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue