[Xfce4-commits] <xfdesktop:master> Fix a warning when the background pixmap is not a GdkWindow.

Jannis Pohlmann noreply at xfce.org
Tue Nov 2 01:14:18 CET 2010


Updating branch refs/heads/master
         to 8be3bd57a0abe0cc85df0f54be2dbc974e66ca73 (commit)
       from 1b31e0b6a4c67b2299727011486a3e4cc84faa95 (commit)

commit 8be3bd57a0abe0cc85df0f54be2dbc974e66ca73
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