[gnome-desktop] gnome-bg: objects without a filename are not slideshows



commit e19df898281f83aa6db3d8fe57c720b29d98abee
Author: Sebastien Bacher <seb128 ubuntu com>
Date:   Tue Jun 11 18:23:26 2013 +0200

    gnome-bg: objects without a filename are not slideshows
    
    https://bugzilla.gnome.org/show_bug.cgi?id=702010

 libgnome-desktop/gnome-bg.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libgnome-desktop/gnome-bg.c b/libgnome-desktop/gnome-bg.c
index 5d1cab1..7e4878b 100644
--- a/libgnome-desktop/gnome-bg.c
+++ b/libgnome-desktop/gnome-bg.c
@@ -2612,6 +2612,9 @@ gnome_bg_changes_with_time (GnomeBG *bg)
 
        g_return_val_if_fail (bg != NULL, FALSE);
 
+       if (!bg->filename)
+               return FALSE;
+
        show = get_as_slideshow (bg, bg->filename);
        if (show)
                return gnome_bg_slide_show_get_num_slides (show) > 1;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]