1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:28:11 +00:00

WindowServer+LibGUI: Port WindowServer's Menu name to new String

This commit is contained in:
Karol Kosek 2023-04-16 12:45:43 +02:00 committed by Andreas Kling
parent 51bd9ca037
commit 7e33857afa
7 changed files with 15 additions and 15 deletions

View file

@ -93,7 +93,7 @@ void Menu::set_name(String name)
{
m_name = move(name);
if (m_menu_id != -1) {
ConnectionToWindowServer::the().async_set_menu_name(m_menu_id, m_name.to_deprecated_string());
ConnectionToWindowServer::the().async_set_menu_name(m_menu_id, m_name);
update_parent_menu_item();
}
}
@ -168,7 +168,7 @@ int Menu::realize_menu(RefPtr<Action> default_action)
unrealize_menu();
m_menu_id = s_menu_id_allocator.allocate();
ConnectionToWindowServer::the().async_create_menu(m_menu_id, m_name.to_deprecated_string());
ConnectionToWindowServer::the().async_create_menu(m_menu_id, m_name);
dbgln_if(MENU_DEBUG, "GUI::Menu::realize_menu(): New menu ID: {}", m_menu_id);
VERIFY(m_menu_id > 0);