mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 21:07:35 +00:00
Everywhere: "file name" => "filename"
This commit is contained in:
parent
def1f1444a
commit
7ae7170d61
59 changed files with 181 additions and 181 deletions
|
@ -37,7 +37,7 @@ LookupServer::LookupServer()
|
|||
s_the = this;
|
||||
|
||||
auto config = Core::ConfigFile::get_for_system("LookupServer");
|
||||
dbgln("Using network config file at {}", config->file_name());
|
||||
dbgln("Using network config file at {}", config->filename());
|
||||
m_nameservers = config->read_entry("DNS", "Nameservers", "1.1.1.1,1.0.0.1").split(',');
|
||||
|
||||
load_etc_hosts();
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
namespace WindowServer {
|
||||
|
||||
CursorParams CursorParams::parse_from_file_name(const StringView& cursor_path, const Gfx::IntPoint& default_hotspot)
|
||||
CursorParams CursorParams::parse_from_filename(const StringView& cursor_path, const Gfx::IntPoint& default_hotspot)
|
||||
{
|
||||
LexicalPath path(cursor_path);
|
||||
if (!path.is_valid()) {
|
||||
|
@ -123,7 +123,7 @@ NonnullRefPtr<Cursor> Cursor::create(NonnullRefPtr<Gfx::Bitmap>&& bitmap)
|
|||
NonnullRefPtr<Cursor> Cursor::create(NonnullRefPtr<Gfx::Bitmap>&& bitmap, const StringView& filename)
|
||||
{
|
||||
auto default_hotspot = bitmap->rect().center();
|
||||
return adopt_ref(*new Cursor(move(bitmap), CursorParams::parse_from_file_name(filename, default_hotspot)));
|
||||
return adopt_ref(*new Cursor(move(bitmap), CursorParams::parse_from_filename(filename, default_hotspot)));
|
||||
}
|
||||
|
||||
RefPtr<Cursor> Cursor::create(Gfx::StandardCursor standard_cursor)
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace WindowServer {
|
|||
|
||||
class CursorParams {
|
||||
public:
|
||||
static CursorParams parse_from_file_name(const StringView&, const Gfx::IntPoint&);
|
||||
static CursorParams parse_from_filename(const StringView&, const Gfx::IntPoint&);
|
||||
CursorParams(const Gfx::IntPoint& hotspot)
|
||||
: m_hotspot(hotspot)
|
||||
{
|
||||
|
|
|
@ -116,13 +116,13 @@ bool WindowManager::set_resolution(int width, int height, int scale)
|
|||
}
|
||||
if (m_config) {
|
||||
if (success) {
|
||||
dbgln("Saving resolution: {} @ {}x to config file at {}", Gfx::IntSize(width, height), scale, m_config->file_name());
|
||||
dbgln("Saving resolution: {} @ {}x to config file at {}", Gfx::IntSize(width, height), scale, m_config->filename());
|
||||
m_config->write_num_entry("Screen", "Width", width);
|
||||
m_config->write_num_entry("Screen", "Height", height);
|
||||
m_config->write_num_entry("Screen", "ScaleFactor", scale);
|
||||
m_config->sync();
|
||||
} else {
|
||||
dbgln("Saving fallback resolution: {} @1x to config file at {}", resolution(), m_config->file_name());
|
||||
dbgln("Saving fallback resolution: {} @1x to config file at {}", resolution(), m_config->filename());
|
||||
m_config->write_num_entry("Screen", "Width", resolution().width());
|
||||
m_config->write_num_entry("Screen", "Height", resolution().height());
|
||||
m_config->write_num_entry("Screen", "ScaleFactor", 1);
|
||||
|
@ -140,7 +140,7 @@ Gfx::IntSize WindowManager::resolution() const
|
|||
void WindowManager::set_acceleration_factor(double factor)
|
||||
{
|
||||
Screen::the().set_acceleration_factor(factor);
|
||||
dbgln("Saving acceleration factor {} to config file at {}", factor, m_config->file_name());
|
||||
dbgln("Saving acceleration factor {} to config file at {}", factor, m_config->filename());
|
||||
m_config->write_entry("Mouse", "AccelerationFactor", String::formatted("{}", factor));
|
||||
m_config->sync();
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ void WindowManager::set_acceleration_factor(double factor)
|
|||
void WindowManager::set_scroll_step_size(unsigned step_size)
|
||||
{
|
||||
Screen::the().set_scroll_step_size(step_size);
|
||||
dbgln("Saving scroll step size {} to config file at {}", step_size, m_config->file_name());
|
||||
dbgln("Saving scroll step size {} to config file at {}", step_size, m_config->filename());
|
||||
m_config->write_entry("Mouse", "ScrollStepSize", String::number(step_size));
|
||||
m_config->sync();
|
||||
}
|
||||
|
@ -157,7 +157,7 @@ void WindowManager::set_double_click_speed(int speed)
|
|||
{
|
||||
VERIFY(speed >= double_click_speed_min && speed <= double_click_speed_max);
|
||||
m_double_click_speed = speed;
|
||||
dbgln("Saving double-click speed {} to config file at {}", speed, m_config->file_name());
|
||||
dbgln("Saving double-click speed {} to config file at {}", speed, m_config->filename());
|
||||
m_config->write_entry("Input", "DoubleClickSpeed", String::number(speed));
|
||||
m_config->sync();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue