mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:57:45 +00:00
WindowServer+LibGUI: Rename WindowType::MenuApplet => Applet
This commit is contained in:
parent
dabfeb6dd8
commit
0069020e6c
13 changed files with 17 additions and 17 deletions
|
@ -602,7 +602,7 @@ Gfx::IntRect Widget::window_relative_rect() const
|
|||
|
||||
Gfx::IntRect Widget::screen_relative_rect() const
|
||||
{
|
||||
auto window_position = window()->window_type() == WindowType::MenuApplet
|
||||
auto window_position = window()->window_type() == WindowType::Applet
|
||||
? window()->applet_rect_on_screen().location()
|
||||
: window()->rect().location();
|
||||
return window_relative_rect().translated(window_position);
|
||||
|
|
|
@ -237,7 +237,7 @@ String Window::title() const
|
|||
|
||||
Gfx::IntRect Window::applet_rect_on_screen() const
|
||||
{
|
||||
VERIFY(m_window_type == WindowType::MenuApplet);
|
||||
VERIFY(m_window_type == WindowType::Applet);
|
||||
return WindowServerConnection::the().send_sync<Messages::WindowServer::GetAppletRectOnScreen>(m_window_id)->rect();
|
||||
}
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ public:
|
|||
String gmt_date_string() const;
|
||||
String iso_date_string() const;
|
||||
|
||||
// FIXME: One day, implement real locale support. Until then, everyone gets what the Clock MenuApplet displays.
|
||||
// FIXME: One day, implement real locale support. Until then, everyone gets what the Clock Applet displays.
|
||||
String locale_date_string() const { return m_datetime.to_string("%Y-%m-%d"); }
|
||||
String locale_string() const { return m_datetime.to_string(); }
|
||||
String locale_time_string() const { return m_datetime.to_string("%H:%M:%S"); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue