From 952f6bbb2ad00f18c10f1d5b3623fc878edb38b3 Mon Sep 17 00:00:00 2001 From: MacDue Date: Sun, 26 Mar 2023 21:22:45 +0100 Subject: [PATCH] WindowServer: Rename menu_title to name in IPC API This is referred to as the name everywhere else, so we should be consistent here. --- Userland/Services/WindowServer/ConnectionFromClient.cpp | 4 ++-- Userland/Services/WindowServer/WindowServer.ipc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Services/WindowServer/ConnectionFromClient.cpp b/Userland/Services/WindowServer/ConnectionFromClient.cpp index 34bf167b78..3b99e581f7 100644 --- a/Userland/Services/WindowServer/ConnectionFromClient.cpp +++ b/Userland/Services/WindowServer/ConnectionFromClient.cpp @@ -90,9 +90,9 @@ void ConnectionFromClient::notify_about_new_screen_rects() async_screen_rects_changed(Screen::rects(), Screen::main().index(), wm.window_stack_rows(), wm.window_stack_columns()); } -void ConnectionFromClient::create_menu(i32 menu_id, DeprecatedString const& menu_title) +void ConnectionFromClient::create_menu(i32 menu_id, DeprecatedString const& name) { - auto menu = Menu::construct(this, menu_id, menu_title); + auto menu = Menu::construct(this, menu_id, name); m_menus.set(menu_id, move(menu)); } diff --git a/Userland/Services/WindowServer/WindowServer.ipc b/Userland/Services/WindowServer/WindowServer.ipc index e8e8b7b4bc..56c649c863 100644 --- a/Userland/Services/WindowServer/WindowServer.ipc +++ b/Userland/Services/WindowServer/WindowServer.ipc @@ -4,7 +4,7 @@ endpoint WindowServer { - create_menu(i32 menu_id, [UTF8] DeprecatedString menu_title) =| + create_menu(i32 menu_id, [UTF8] DeprecatedString name) =| destroy_menu(i32 menu_id) =| add_menu(i32 window_id, i32 menu_id) =|