|
|
ximg, ximg->bpl, w, h, 60, 60, 60, shade_color->pixel); | 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); |
|
|
|
g_object_unref(ximg); |
} | } |
else { | else { |
cfg.playlist_transparent = FALSE; | cfg.playlist_transparent = FALSE; |
} | } |
| |
|
g_object_unref(in); |
g_object_unref(gc); | g_object_unref(gc); |
| |
return p; | return p; |
|
|
static GdkFilterReturn | static GdkFilterReturn |
root_event_cb (GdkXEvent *xev, GdkEventProperty *event, gpointer data) | root_event_cb (GdkXEvent *xev, GdkEventProperty *event, gpointer data) |
{ | { |
static Atom at = None; |
|
XEvent *xevent = (XEvent *)xev; | XEvent *xevent = (XEvent *)xev; |
| |
if (xevent->type == PropertyNotify) | if (xevent->type == PropertyNotify) |
{ | { |
if (at == None) |
Atom at = XInternAtom (xevent->xproperty.display, "_XROOTPMAP_ID", True); |
at = XInternAtom (xevent->xproperty.display, "_XROOTPMAP_ID", True); |
|
| |
if (at == xevent->xproperty.atom) | if (at == xevent->xproperty.atom) |
{ | { |
|
if (rootpix != NULL) |
|
g_object_unref(rootpix); |
|
|
rootpix = shade_pixmap(get_transparency_pixmap(), 0, 0, 0, 0, gdk_screen_width(), gdk_screen_height(), | rootpix = shade_pixmap(get_transparency_pixmap(), 0, 0, 0, 0, gdk_screen_width(), gdk_screen_height(), |
skin_get_color(bmp_active_skin, SKIN_PLEDIT_NORMALBG)); | skin_get_color(bmp_active_skin, SKIN_PLEDIT_NORMALBG)); |
| |