summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/audacious/files/1.1.2-fix-playlist-transparency.patch')
-rw-r--r--media-sound/audacious/files/1.1.2-fix-playlist-transparency.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/media-sound/audacious/files/1.1.2-fix-playlist-transparency.patch b/media-sound/audacious/files/1.1.2-fix-playlist-transparency.patch
new file mode 100644
index 000000000000..8389bee82cd4
--- /dev/null
+++ b/media-sound/audacious/files/1.1.2-fix-playlist-transparency.patch
@@ -0,0 +1,24 @@
+Index: trunk/audacious/widgets/playlist_list.c
+===================================================================
+--- audacious/playlist_list.c (revision 2158)
++++ audacious/playlist_list.c (revision 2159)
+@@ -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);
+