summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI
diff options
context:
space:
mode:
authorimplicitfield <114500360+implicitfield@users.noreply.github.com>2023-03-17 13:38:39 +0400
committerAndreas Kling <kling@serenityos.org>2023-03-21 10:06:41 +0100
commitc9ad252e3320e57913684047916b876be5af00b0 (patch)
treedf846a1757a7106e007bbfe1a4c84f16e2a370f1 /Userland/Libraries/LibGUI
parent9f2a396c6ee97550f12fc0a7591a63e381d74b60 (diff)
downloadserenity-c9ad252e3320e57913684047916b876be5af00b0.zip
LibGUI: Make Desktop::set_wallpaper accept an Optional<StringView>
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r--Userland/Libraries/LibGUI/Desktop.cpp2
-rw-r--r--Userland/Libraries/LibGUI/Desktop.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/Desktop.cpp b/Userland/Libraries/LibGUI/Desktop.cpp
index 980c6fdff6..1fa40eff4b 100644
--- a/Userland/Libraries/LibGUI/Desktop.cpp
+++ b/Userland/Libraries/LibGUI/Desktop.cpp
@@ -59,7 +59,7 @@ RefPtr<Gfx::Bitmap> Desktop::wallpaper_bitmap() const
return ConnectionToWindowServer::the().get_wallpaper().bitmap();
}
-bool Desktop::set_wallpaper(RefPtr<Gfx::Bitmap const> wallpaper_bitmap, Optional<DeprecatedString> path)
+bool Desktop::set_wallpaper(RefPtr<Gfx::Bitmap const> wallpaper_bitmap, Optional<StringView> path)
{
if (m_is_setting_desktop_wallpaper)
return false;
diff --git a/Userland/Libraries/LibGUI/Desktop.h b/Userland/Libraries/LibGUI/Desktop.h
index e1e18065c3..395bbc1cd5 100644
--- a/Userland/Libraries/LibGUI/Desktop.h
+++ b/Userland/Libraries/LibGUI/Desktop.h
@@ -33,7 +33,7 @@ public:
DeprecatedString wallpaper_path() const;
RefPtr<Gfx::Bitmap> wallpaper_bitmap() const;
- bool set_wallpaper(RefPtr<Gfx::Bitmap const> wallpaper_bitmap, Optional<DeprecatedString> path);
+ bool set_wallpaper(RefPtr<Gfx::Bitmap const> wallpaper_bitmap, Optional<StringView> path);
void set_system_effects(Vector<bool> effects) { m_system_effects = { effects }; };
SystemEffects const& system_effects() const { return m_system_effects; }