[eog/wip/friemann/dark-wallpaper: 2/2] EogWindow: Also set wallpaper as dark wallpaper
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/wip/friemann/dark-wallpaper: 2/2] EogWindow: Also set wallpaper as dark wallpaper
- Date: Wed, 16 Mar 2022 20:51:31 +0000 (UTC)
commit f2a9b56f3b5aeb60290d0806da476c4ceb2d22cb
Author: Felix Riemann <friemann gnome org>
Date: Wed Mar 16 21:49:40 2022 +0100
EogWindow: Also set wallpaper as dark wallpaper
When we set a wallpaper from eog this configures the newly selected
wallpaper also for the new dark mode in GNOME 42. Otherwise the image
would not be used/updated.
Fixes #229.
src/eog-config-keys.h | 1 +
src/eog-window.c | 1 +
2 files changed, 2 insertions(+)
---
diff --git a/src/eog-config-keys.h b/src/eog-config-keys.h
index 12b5cc80..aa977339 100644
--- a/src/eog-config-keys.h
+++ b/src/eog-config-keys.h
@@ -34,6 +34,7 @@
#define EOG_CONF_DESKTOP_WALLPAPER_SCHEMA "org.gnome.desktop.background"
#define EOG_CONF_DESKTOP_WALLPAPER "picture-uri"
+#define EOG_CONF_DESKTOP_WALLPAPER_DARK "picture-uri-dark"
#define EOG_CONF_DESKTOP_LOCKDOWN_SCHEMA "org.gnome.desktop.lockdown"
#define EOG_CONF_DESKTOP_CAN_PRINT "disable-printing"
diff --git a/src/eog-window.c b/src/eog-window.c
index d6522c25..7e1eb02c 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -2706,6 +2706,7 @@ eog_window_set_wallpaper (EogWindow *window, const gchar *filename, const gchar
uri = g_filename_to_uri (filename, NULL, NULL);
settings = g_settings_new (EOG_CONF_DESKTOP_WALLPAPER_SCHEMA);
g_settings_set_string (settings, EOG_CONF_DESKTOP_WALLPAPER, uri);
+ g_settings_set_string (settings, EOG_CONF_DESKTOP_WALLPAPER_DARK, uri);
g_object_unref (settings);
g_free (uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]