diff options
author | Monsta <[email protected]> | 2015-07-24 14:29:15 +0300 |
---|---|---|
committer | Monsta <[email protected]> | 2015-07-24 14:29:15 +0300 |
commit | f0c86fd1c0a42ad6bb212fba07f2137033dd4c40 (patch) | |
tree | d5b166d9e3c623bdf20760ee202634b2340e93ef | |
parent | 6830d2560e3db172c1042b8811f744a7351cf7c2 (diff) | |
download | mate-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
-rw-r--r-- | libmate-desktop/mate-bg.c | 3 |
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; |