[Xfce4-commits] <xfce4-panel:master> Small fix in idle image loading.
Nick Schermer
noreply at xfce.org
Sat Jun 18 12:18:02 CEST 2011
Updating branch refs/heads/master
to d8bd765f60a10f28131f5013b00030f7e42ba0c9 (commit)
from afb54ab8fdb5bfb6493e5be291eb2901773cc7fc (commit)
commit d8bd765f60a10f28131f5013b00030f7e42ba0c9
Author: Nick Schermer <nick at xfce.org>
Date: Sat Jun 18 12:11:41 2011 +0200
Small fix in idle image loading.
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 4f783b4..136aa0c 100644
--- a/libxfce4panel/xfce-panel-image.c
+++ b/libxfce4panel/xfce-panel-image.c
@@ -442,6 +442,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))
{
@@ -479,6 +481,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