[gnome-panel/gnome-3-6] panel: Fix launcher icon animation ending with black artifact



commit d5b1d06229089187a5c8e81f86103d9c07ec183d
Author: Yannick Gicquel <ygicquel gmail com>
Date:   Thu Nov 22 08:37:26 2012 +0100

    panel: Fix launcher icon animation ending with black artifact
    
    We simply need to hide the animation window before unref'ing the pixbuf.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688618

 gnome-panel/xstuff.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gnome-panel/xstuff.c b/gnome-panel/xstuff.c
index 5acbf66..4f8b605 100644
--- a/gnome-panel/xstuff.c
+++ b/gnome-panel/xstuff.c
@@ -326,12 +326,13 @@ zoom_draw (GtkWidget *widget,
 			g_source_remove (zoom->timeout_id);
 		zoom->timeout_id = 0;
 
+		gtk_widget_hide (widget);
+		g_idle_add (idle_destroy, widget);
+
 		g_object_unref (zoom->pixbuf);
 		zoom->pixbuf = NULL;
 
 		g_slice_free (CompositedZoomData, zoom);
-
-		g_idle_add (idle_destroy, widget);
 	} else {
 		GdkPixbuf *scaled;
 		int width, height;



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