summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xfce-desktop.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xfce-desktop.c b/src/xfce-desktop.c
index 7d74a1e0..8d7f8f75 100644
--- a/src/xfce-desktop.c
+++ b/src/xfce-desktop.c
@@ -995,7 +995,10 @@ xfce_desktop_image_filename_changed(XfconfChannel *channel,
return;
backdrop = desktop->priv->backdrops[monitor];
- filename = g_value_get_string(value);
+ if(!G_VALUE_HOLDS_STRING(value))
+ filename = DEFAULT_BACKDROP;
+ else
+ filename = g_value_get_string(value);
if(G_LIKELY(filename && *filename)) {
if(xfdesktop_backdrop_list_is_valid(filename)) {
gchar *backdrop_file;