[gnome-desktop] Drop pixbuf cache before switching slides



commit f2d2ad73988315529ceab9677e8584f7e20241ce
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Mar 8 10:42:43 2010 -0500

    Drop pixbuf cache before switching slides
    
    Otherwise, the wrong frame gets shown in the switch.
    
    http://bugzilla.gnome.org/show_bug.cgi?id=601753

 libgnome-desktop/gnome-bg.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libgnome-desktop/gnome-bg.c b/libgnome-desktop/gnome-bg.c
index c45dead..b3a0cf8 100644
--- a/libgnome-desktop/gnome-bg.c
+++ b/libgnome-desktop/gnome-bg.c
@@ -319,6 +319,11 @@ do_transitioned (GnomeBG *bg)
 {
 	bg->transitioned_id = 0;
 
+	if (bg->pixbuf_cache) {
+		g_object_unref (bg->pixbuf_cache);
+		bg->pixbuf_cache = NULL;
+	}
+
 	g_signal_emit (G_OBJECT (bg), signals[TRANSITIONED], 0);
 
 	return FALSE;



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