]>
Commit | Line | Data |
---|---|---|
fd33e2e0 AF |
1 | From be33e799d968a073c0a8856c96d11e8594b88bc4 Mon Sep 17 00:00:00 2001 |
2 | From: Yannick Gicquel <ygicquel@gmail.com> | |
3 | Date: Thu, 22 Nov 2012 08:37:26 +0100 | |
4 | Subject: [PATCH] panel: Fix launcher icon animation ending with black artifact | |
5 | ||
6 | We simply need to hide the animation window before unref'ing the pixbuf. | |
7 | ||
8 | https://bugzilla.gnome.org/show_bug.cgi?id=688618 | |
9 | --- | |
10 | gnome-panel/xstuff.c | 5 +++-- | |
11 | 1 file changed, 3 insertions(+), 2 deletions(-) | |
12 | ||
13 | diff --git a/gnome-panel/xstuff.c b/gnome-panel/xstuff.c | |
14 | index 5acbf66..4f8b605 100644 | |
15 | --- a/gnome-panel/xstuff.c | |
16 | +++ b/gnome-panel/xstuff.c | |
17 | @@ -326,12 +326,13 @@ zoom_draw (GtkWidget *widget, | |
18 | g_source_remove (zoom->timeout_id); | |
19 | zoom->timeout_id = 0; | |
20 | ||
21 | + gtk_widget_hide (widget); | |
22 | + g_idle_add (idle_destroy, widget); | |
23 | + | |
24 | g_object_unref (zoom->pixbuf); | |
25 | zoom->pixbuf = NULL; | |
26 | ||
27 | g_slice_free (CompositedZoomData, zoom); | |
28 | - | |
29 | - g_idle_add (idle_destroy, widget); | |
30 | } else { | |
31 | GdkPixbuf *scaled; | |
32 | int width, height; | |
33 | -- | |
34 | 1.8.2 | |
35 |