mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 19:37:34 +00:00
LibGUI: Make Window::set_title() take a String
This commit is contained in:
parent
942a5afd23
commit
050648b270
2 changed files with 4 additions and 4 deletions
|
@ -220,12 +220,12 @@ void Window::hide()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::set_title(const StringView& title)
|
void Window::set_title(String title)
|
||||||
{
|
{
|
||||||
m_title_when_windowless = title;
|
m_title_when_windowless = move(title);
|
||||||
if (!is_visible())
|
if (!is_visible())
|
||||||
return;
|
return;
|
||||||
WindowServerConnection::the().send_sync<Messages::WindowServer::SetWindowTitle>(m_window_id, title);
|
WindowServerConnection::the().send_sync<Messages::WindowServer::SetWindowTitle>(m_window_id, m_title_when_windowless);
|
||||||
}
|
}
|
||||||
|
|
||||||
String Window::title() const
|
String Window::title() const
|
||||||
|
|
|
@ -81,7 +81,7 @@ public:
|
||||||
int window_id() const { return m_window_id; }
|
int window_id() const { return m_window_id; }
|
||||||
|
|
||||||
String title() const;
|
String title() const;
|
||||||
void set_title(const StringView&);
|
void set_title(String);
|
||||||
|
|
||||||
Color background_color() const { return m_background_color; }
|
Color background_color() const { return m_background_color; }
|
||||||
void set_background_color(Color color) { m_background_color = color; }
|
void set_background_color(Color color) { m_background_color = color; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue