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:
parent
51bd9ca037
commit
7e33857afa
7 changed files with 15 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue