mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:47:35 +00:00
Userland: Rename WindowServerConnection=>ConnectionToWindowServer
This was done with CLion's automatic rename feature.
This commit is contained in:
parent
af132fdbd1
commit
935d023967
43 changed files with 201 additions and 201 deletions
|
@ -16,13 +16,13 @@
|
|||
#include <LibGUI/Button.h>
|
||||
#include <LibGUI/Clipboard.h>
|
||||
#include <LibGUI/ComboBox.h>
|
||||
#include <LibGUI/ConnectionToWindowServer.h>
|
||||
#include <LibGUI/Desktop.h>
|
||||
#include <LibGUI/FilePicker.h>
|
||||
#include <LibGUI/FileSystemModel.h>
|
||||
#include <LibGUI/IconView.h>
|
||||
#include <LibGUI/ItemListModel.h>
|
||||
#include <LibGUI/MessageBox.h>
|
||||
#include <LibGUI/WindowServerConnection.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
#include <LibGfx/SystemTheme.h>
|
||||
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
#include "DesktopSettingsWidget.h"
|
||||
#include <Applications/DisplaySettings/DesktopSettingsGML.h>
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
#include <LibGUI/ConnectionToWindowServer.h>
|
||||
#include <LibGUI/Desktop.h>
|
||||
#include <LibGUI/Label.h>
|
||||
#include <LibGUI/MessageBox.h>
|
||||
#include <LibGUI/SpinBox.h>
|
||||
#include <LibGUI/WindowServerConnection.h>
|
||||
|
||||
namespace DisplaySettings {
|
||||
|
||||
|
@ -42,7 +42,7 @@ void DesktopSettingsWidget::apply_settings()
|
|||
auto workspace_columns = (unsigned)m_workspace_columns_spinbox->value();
|
||||
auto& desktop = GUI::Desktop::the();
|
||||
if (workspace_rows != desktop.workspace_rows() || workspace_columns != desktop.workspace_columns()) {
|
||||
if (!GUI::WindowServerConnection::the().apply_workspace_settings(workspace_rows, workspace_columns, true)) {
|
||||
if (!GUI::ConnectionToWindowServer::the().apply_workspace_settings(workspace_rows, workspace_columns, true)) {
|
||||
GUI::MessageBox::show(window(), String::formatted("Error applying workspace settings"),
|
||||
"Workspace settings", GUI::MessageBox::Type::Error);
|
||||
}
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#include "FontSettingsWidget.h"
|
||||
#include <Applications/DisplaySettings/FontSettingsGML.h>
|
||||
#include <LibGUI/Button.h>
|
||||
#include <LibGUI/ConnectionToWindowServer.h>
|
||||
#include <LibGUI/FontPicker.h>
|
||||
#include <LibGUI/WindowServerConnection.h>
|
||||
#include <LibGfx/FontDatabase.h>
|
||||
|
||||
namespace DisplaySettings {
|
||||
|
@ -54,7 +54,7 @@ static void update_label_with_font(GUI::Label& label, Gfx::Font const& font)
|
|||
|
||||
void FontSettingsWidget::apply_settings()
|
||||
{
|
||||
GUI::WindowServerConnection::the().set_system_fonts(m_default_font_label->font().qualified_name(), m_fixed_width_font_label->font().qualified_name());
|
||||
GUI::ConnectionToWindowServer::the().set_system_fonts(m_default_font_label->font().qualified_name(), m_fixed_width_font_label->font().qualified_name());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
#include <LibGUI/BoxLayout.h>
|
||||
#include <LibGUI/Button.h>
|
||||
#include <LibGUI/ComboBox.h>
|
||||
#include <LibGUI/ConnectionToWindowServer.h>
|
||||
#include <LibGUI/ItemListModel.h>
|
||||
#include <LibGUI/Label.h>
|
||||
#include <LibGUI/MessageBox.h>
|
||||
#include <LibGUI/RadioButton.h>
|
||||
#include <LibGUI/WindowServerConnection.h>
|
||||
#include <LibGfx/SystemTheme.h>
|
||||
|
||||
namespace DisplaySettings {
|
||||
|
@ -140,7 +140,7 @@ static String display_name_from_edid(EDID::Parser const& edid)
|
|||
|
||||
void MonitorSettingsWidget::load_current_settings()
|
||||
{
|
||||
m_screen_layout = GUI::WindowServerConnection::the().get_screen_layout();
|
||||
m_screen_layout = GUI::ConnectionToWindowServer::the().get_screen_layout();
|
||||
|
||||
m_screens.clear();
|
||||
m_screen_edids.clear();
|
||||
|
@ -214,9 +214,9 @@ void MonitorSettingsWidget::apply_settings()
|
|||
{
|
||||
// Fetch the latest configuration again, in case it has been changed by someone else.
|
||||
// This isn't technically race free, but if the user automates changing settings we can't help...
|
||||
auto current_layout = GUI::WindowServerConnection::the().get_screen_layout();
|
||||
auto current_layout = GUI::ConnectionToWindowServer::the().get_screen_layout();
|
||||
if (m_screen_layout != current_layout) {
|
||||
auto result = GUI::WindowServerConnection::the().set_screen_layout(m_screen_layout, false);
|
||||
auto result = GUI::ConnectionToWindowServer::the().set_screen_layout(m_screen_layout, false);
|
||||
if (result.success()) {
|
||||
load_current_settings(); // Refresh
|
||||
|
||||
|
@ -243,13 +243,13 @@ void MonitorSettingsWidget::apply_settings()
|
|||
|
||||
// If the user selects "No", closes the window or the window gets closed by the 10 seconds timer, revert the changes.
|
||||
if (box->exec() == GUI::MessageBox::ExecYes) {
|
||||
auto save_result = GUI::WindowServerConnection::the().save_screen_layout();
|
||||
auto save_result = GUI::ConnectionToWindowServer::the().save_screen_layout();
|
||||
if (!save_result.success()) {
|
||||
GUI::MessageBox::show(window(), String::formatted("Error saving settings: {}", save_result.error_msg()),
|
||||
"Unable to save setting", GUI::MessageBox::Type::Error);
|
||||
}
|
||||
} else {
|
||||
auto restore_result = GUI::WindowServerConnection::the().set_screen_layout(current_layout, false);
|
||||
auto restore_result = GUI::ConnectionToWindowServer::the().set_screen_layout(current_layout, false);
|
||||
if (!restore_result.success()) {
|
||||
GUI::MessageBox::show(window(), String::formatted("Error restoring settings: {}", restore_result.error_msg()),
|
||||
"Unable to restore setting", GUI::MessageBox::Type::Error);
|
||||
|
@ -269,7 +269,7 @@ void MonitorSettingsWidget::show_screen_numbers(bool show)
|
|||
if (m_showing_screen_numbers == show)
|
||||
return;
|
||||
m_showing_screen_numbers = show;
|
||||
GUI::WindowServerConnection::the().async_show_screen_numbers(show);
|
||||
GUI::ConnectionToWindowServer::the().async_show_screen_numbers(show);
|
||||
}
|
||||
|
||||
void MonitorSettingsWidget::show_event(GUI::ShowEvent&)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue