diff audacious/widgets/playlist_list.c @ 1614:9b4678a2efc9 trunk

[svn] - If transparency fails, disable it.
author nhjm449
date Sun, 03 Sep 2006 22:04:17 -0700
parents ec4d858524fa
children 425a9a172319
line wrap: on
line diff
--- a/audacious/widgets/playlist_list.c	Sat Sep 02 08:24:10 2006 -0700
+++ b/audacious/widgets/playlist_list.c	Sun Sep 03 22:04:17 2006 -0700
@@ -108,10 +108,16 @@
 
 	gdk_error_trap_pop();
 
-	shade_gdkimage_generic(gdk_drawable_get_visual(GDK_WINDOW(playlistwin->window)),
-		ximg, ximg->bpl, w, h, 60, 60, 60, shade_color->pixel);
+	if (GDK_IS_IMAGE(ximg))
+	{
+		shade_gdkimage_generic(gdk_drawable_get_visual(GDK_WINDOW(playlistwin->window)),
+			ximg, ximg->bpl, w, h, 60, 60, 60, shade_color->pixel);
 
-	gdk_draw_image(p, gc, ximg, 0, 0, x, y, w, h);
+		gdk_draw_image(p, gc, ximg, 0, 0, x, y, w, h);
+	}
+	else {
+		cfg.playlist_transparent = FALSE;
+	}
 
 	g_object_unref(gc);