mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +00:00
LibGUI: Put all classes in the GUI namespace and remove the leading G
This took me a moment. Welcome to the new world of GUI::Widget! :^)
This commit is contained in:
parent
2d39da5405
commit
c5bd9d4ed1
337 changed files with 5400 additions and 4816 deletions
|
@ -28,8 +28,8 @@
|
|||
#include <LibGUI/GAction.h>
|
||||
#include <LibGUI/GWindowServerConnection.h>
|
||||
|
||||
TaskbarButton::TaskbarButton(const WindowIdentifier& identifier, GWidget* parent)
|
||||
: GButton(parent)
|
||||
TaskbarButton::TaskbarButton(const WindowIdentifier& identifier, GUI::Widget* parent)
|
||||
: GUI::Button(parent)
|
||||
, m_identifier(identifier)
|
||||
{
|
||||
}
|
||||
|
@ -38,17 +38,17 @@ TaskbarButton::~TaskbarButton()
|
|||
{
|
||||
}
|
||||
|
||||
void TaskbarButton::context_menu_event(GContextMenuEvent&)
|
||||
void TaskbarButton::context_menu_event(GUI::ContextMenuEvent&)
|
||||
{
|
||||
GWindowServerConnection::the().post_message(WindowServer::WM_PopupWindowMenu(m_identifier.client_id(), m_identifier.window_id(), screen_relative_rect().location()));
|
||||
GUI::WindowServerConnection::the().post_message(WindowServer::WM_PopupWindowMenu(m_identifier.client_id(), m_identifier.window_id(), screen_relative_rect().location()));
|
||||
}
|
||||
|
||||
void TaskbarButton::resize_event(GResizeEvent& event)
|
||||
void TaskbarButton::resize_event(GUI::ResizeEvent& event)
|
||||
{
|
||||
GWindowServerConnection::the().post_message(
|
||||
GUI::WindowServerConnection::the().post_message(
|
||||
WindowServer::WM_SetWindowTaskbarRect(
|
||||
m_identifier.client_id(),
|
||||
m_identifier.window_id(),
|
||||
screen_relative_rect()));
|
||||
return GButton::resize_event(event);
|
||||
return GUI::Button::resize_event(event);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue