[gnome-panel] panel: Fix launcher icon animation ending with black artifact
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] panel: Fix launcher icon animation ending with black artifact
- Date: Thu, 22 Nov 2012 07:39:08 +0000 (UTC)
commit be33e799d968a073c0a8856c96d11e8594b88bc4
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]