[Xfce4-commits] <xfce4-panel:xfce-4.8> Small fix in idle image loading.
Nick Schermer
noreply at xfce.org
Sat Jun 18 12:18:09 CEST 2011
Updating branch refs/heads/xfce-4.8
to 2d42ea880470c5b777f4e6a6b9f0804eaac89f57 (commit)
from 0f1f3c0bb965bc12794432182c571f5eb8d67e42 (commit)
commit 2d42ea880470c5b777f4e6a6b9f0804eaac89f57
Author: Nick Schermer <nick at xfce.org>
Date: Sat Jun 18 12:11:41 2011 +0200
Small fix in idle image loading.
(cherry picked from commit d8bd765f60a10f28131f5013b00030f7e42ba0c9)
libxfce4panel/xfce-panel-image.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/libxfce4panel/xfce-panel-image.c b/libxfce4panel/xfce-panel-image.c
index f483787..bb88f4a 100644
--- a/libxfce4panel/xfce-panel-image.c
+++ b/libxfce4panel/xfce-panel-image.c
@@ -440,6 +440,8 @@ xfce_panel_image_load (gpointer data)
GtkIconTheme *icon_theme = NULL;
gint size;
+ GDK_THREADS_ENTER ();
+
size = MIN (priv->width, priv->height);
if (G_UNLIKELY (priv->force_icon_sizes && size < 32))
{
@@ -477,6 +479,8 @@ xfce_panel_image_load (gpointer data)
if (G_LIKELY (priv->cache != NULL))
gtk_widget_queue_draw (GTK_WIDGET (data));
+ GDK_THREADS_LEAVE ();
+
return FALSE;
}
More information about the Xfce4-commits
mailing list