mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibGUI: Make Desktop::set_wallpaper accept an Optional<StringView>
This commit is contained in:
parent
9f2a396c6e
commit
c9ad252e33
Notes:
sideshowbarker
2024-07-16 22:38:25 +09:00
Author: https://github.com/implicitfield
Commit: c9ad252e33
Pull-request: https://github.com/SerenityOS/serenity/pull/17893
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue