1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:27:44 +00:00

LibGUI: Make Desktop::set_wallpaper accept an Optional<StringView>

This commit is contained in:
implicitfield 2023-03-17 13:38:39 +04:00 committed by Andreas Kling
parent 9f2a396c6e
commit c9ad252e33
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ RefPtr<Gfx::Bitmap> Desktop::wallpaper_bitmap() const
return ConnectionToWindowServer::the().get_wallpaper().bitmap(); 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) if (m_is_setting_desktop_wallpaper)
return false; return false;

View file

@ -33,7 +33,7 @@ public:
DeprecatedString wallpaper_path() const; DeprecatedString wallpaper_path() const;
RefPtr<Gfx::Bitmap> wallpaper_bitmap() 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 }; }; void set_system_effects(Vector<bool> effects) { m_system_effects = { effects }; };
SystemEffects const& system_effects() const { return m_system_effects; } SystemEffects const& system_effects() const { return m_system_effects; }