[Xfce4-commits] <xfdesktop:jannis/port-to-gio> Fix a warning when the background pixmap is not a GdkWindow.
Jannis Pohlmann
noreply at xfce.org
Thu Oct 21 00:10:01 CEST 2010
Updating branch refs/heads/jannis/port-to-gio
to 2d81053a21542e64fc71afb633f8d371c1d1ae2b (commit)
from bc5b3aa3b2658a1bfa7de63304ea108dd99c1403 (commit)
commit 2d81053a21542e64fc71afb633f8d371c1d1ae2b
Author: Jannis Pohlmann <jannis at xfce.org>
Date: Thu Oct 21 00:07:04 2010 +0200
Fix a warning when the background pixmap is not a GdkWindow.
src/xfce-desktop.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/xfce-desktop.c b/src/xfce-desktop.c
index a26109b..424e4ea 100644
--- a/src/xfce-desktop.c
+++ b/src/xfce-desktop.c
@@ -919,7 +919,8 @@ xfce_desktop_style_set(GtkWidget *w,
gdouble old_font_size;
#endif
- gdk_window_set_back_pixmap(w->window, desktop->priv->bg_pixmap, FALSE);
+ if(GDK_IS_WINDOW(desktop->priv->bg_pixmap))
+ gdk_window_set_back_pixmap(w->window, desktop->priv->bg_pixmap, FALSE);
gtk_widget_queue_draw(w);
#ifdef ENABLE_DESKTOP_ICONS
More information about the Xfce4-commits
mailing list