diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-15 09:17:18 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-15 09:17:18 +0100 |
commit | 29c49356e3229acb740f016d39629e322d31abd1 (patch) | |
tree | 3e9b6bb9cf4bdf2a002d68e8050ad76ed75297cc /LibGUI/GMenuBar.cpp | |
parent | a54cd84c5935437412d3986f7a02a4271ae1ae65 (diff) | |
download | serenity-29c49356e3229acb740f016d39629e322d31abd1.zip |
WindowServer: Rename GUI_Foo to WSAPI_Foo.
Diffstat (limited to 'LibGUI/GMenuBar.cpp')
-rw-r--r-- | LibGUI/GMenuBar.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/LibGUI/GMenuBar.cpp b/LibGUI/GMenuBar.cpp index 574ab8b3cb..1cce445e69 100644 --- a/LibGUI/GMenuBar.cpp +++ b/LibGUI/GMenuBar.cpp @@ -17,9 +17,9 @@ void GMenuBar::add_menu(OwnPtr<GMenu>&& menu) int GMenuBar::realize_menubar() { - GUI_ClientMessage request; - request.type = GUI_ClientMessage::Type::CreateMenubar; - GUI_ServerMessage response = GEventLoop::main().sync_request(request, GUI_ServerMessage::Type::DidCreateMenubar); + WSAPI_ClientMessage request; + request.type = WSAPI_ClientMessage::Type::CreateMenubar; + WSAPI_ServerMessage response = GEventLoop::main().sync_request(request, WSAPI_ServerMessage::Type::DidCreateMenubar); return response.menu.menubar_id; } @@ -27,10 +27,10 @@ void GMenuBar::unrealize_menubar() { if (!m_menubar_id) return; - GUI_ClientMessage request; - request.type = GUI_ClientMessage::Type::DestroyMenubar; + WSAPI_ClientMessage request; + request.type = WSAPI_ClientMessage::Type::DestroyMenubar; request.menu.menubar_id = m_menubar_id; - GEventLoop::main().sync_request(request, GUI_ServerMessage::Type::DidDestroyMenubar); + GEventLoop::main().sync_request(request, WSAPI_ServerMessage::Type::DidDestroyMenubar); m_menubar_id = 0; } @@ -43,16 +43,16 @@ void GMenuBar::notify_added_to_application(Badge<GApplication>) ASSERT(menu); int menu_id = menu->realize_menu(); ASSERT(menu_id > 0); - GUI_ClientMessage request; - request.type = GUI_ClientMessage::Type::AddMenuToMenubar; + WSAPI_ClientMessage request; + request.type = WSAPI_ClientMessage::Type::AddMenuToMenubar; request.menu.menubar_id = m_menubar_id; request.menu.menu_id = menu_id; - GEventLoop::main().sync_request(request, GUI_ServerMessage::Type::DidAddMenuToMenubar); + GEventLoop::main().sync_request(request, WSAPI_ServerMessage::Type::DidAddMenuToMenubar); } - GUI_ClientMessage request; - request.type = GUI_ClientMessage::Type::SetApplicationMenubar; + WSAPI_ClientMessage request; + request.type = WSAPI_ClientMessage::Type::SetApplicationMenubar; request.menu.menubar_id = m_menubar_id; - GEventLoop::main().sync_request(request, GUI_ServerMessage::Type::DidSetApplicationMenubar); + GEventLoop::main().sync_request(request, WSAPI_ServerMessage::Type::DidSetApplicationMenubar); } void GMenuBar::notify_removed_from_application(Badge<GApplication>) |