Mercurial > audlegacy
comparison 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 |
comparison
equal
deleted
inserted
replaced
1613:9becbe564217 | 1614:9b4678a2efc9 |
---|---|
106 | 106 |
107 ximg = gdk_drawable_copy_to_image(in, NULL, x, y, 0, 0, w, h); /* copy */ | 107 ximg = gdk_drawable_copy_to_image(in, NULL, x, y, 0, 0, w, h); /* copy */ |
108 | 108 |
109 gdk_error_trap_pop(); | 109 gdk_error_trap_pop(); |
110 | 110 |
111 shade_gdkimage_generic(gdk_drawable_get_visual(GDK_WINDOW(playlistwin->window)), | 111 if (GDK_IS_IMAGE(ximg)) |
112 ximg, ximg->bpl, w, h, 60, 60, 60, shade_color->pixel); | 112 { |
113 | 113 shade_gdkimage_generic(gdk_drawable_get_visual(GDK_WINDOW(playlistwin->window)), |
114 gdk_draw_image(p, gc, ximg, 0, 0, x, y, w, h); | 114 ximg, ximg->bpl, w, h, 60, 60, 60, shade_color->pixel); |
115 | |
116 gdk_draw_image(p, gc, ximg, 0, 0, x, y, w, h); | |
117 } | |
118 else { | |
119 cfg.playlist_transparent = FALSE; | |
120 } | |
115 | 121 |
116 g_object_unref(gc); | 122 g_object_unref(gc); |
117 | 123 |
118 return p; | 124 return p; |
119 } | 125 } |