summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-bg.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-07-24 14:29:15 +0300
committerMonsta <[email protected]>2015-07-24 14:29:15 +0300
commitf0c86fd1c0a42ad6bb212fba07f2137033dd4c40 (patch)
treed5b166d9e3c623bdf20760ee202634b2340e93ef /libmate-desktop/mate-bg.c
parent6830d2560e3db172c1042b8811f744a7351cf7c2 (diff)
downloadmate-desktop-f0c86fd1c0a42ad6bb212fba07f2137033dd4c40.tar.bz2
mate-desktop-f0c86fd1c0a42ad6bb212fba07f2137033dd4c40.tar.xz
bg: objects without a filename are not slideshows
from https://github.com/GNOME/gnome-desktop/commit/e19df898281f83aa6db3d8fe57c720b29d98abee
Diffstat (limited to 'libmate-desktop/mate-bg.c')
-rw-r--r--libmate-desktop/mate-bg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c
index fbdcdb0..8f48297 100644
--- a/libmate-desktop/mate-bg.c
+++ b/libmate-desktop/mate-bg.c
@@ -3210,6 +3210,9 @@ mate_bg_changes_with_time (MateBG *bg)
g_return_val_if_fail (bg != NULL, FALSE);
+ if (!bg->filename)
+ return FALSE;
+
show = get_as_slideshow (bg, bg->filename);
if (show)
return g_queue_get_length (show->slides) > 1;