# HG changeset patch # User Tomasz Mon # Date 1183309089 -7200 # Node ID afc8f8c21e758e5096e7616d47326e8b513cba6f # Parent c859aa1a1a4e1b2b11ebdf269f758976fba6c118 use priv->pixmap instead of src diff -r c859aa1a1a4e -r afc8f8c21e75 src/audacious/ui_skinned_textbox.c --- a/src/audacious/ui_skinned_textbox.c Sun Jul 01 18:51:36 2007 +0200 +++ b/src/audacious/ui_skinned_textbox.c Sun Jul 01 18:58:09 2007 +0200 @@ -402,7 +402,6 @@ textbox->redraw = FALSE; gint cw; GdkPixmap *obj; - GdkPixmap *src; if (textbox->text && (!priv->pixmap_text || strcmp(textbox->text, priv->pixmap_text))) textbox_generate_pixmap(textbox); @@ -413,14 +412,13 @@ textbox_generate_pixmap(textbox); } obj = gdk_pixmap_new(NULL, textbox->width, textbox->height, gdk_rgb_get_visual()->depth); - src = priv->pixmap; cw = priv->pixmap_width - priv->offset; if (cw > textbox->width) cw = textbox->width; - gdk_draw_drawable(obj, priv->gc, src, priv->offset, 0, 0, 0, cw, textbox->height); + gdk_draw_drawable(obj, priv->gc, priv->pixmap, priv->offset, 0, 0, 0, cw, textbox->height); if (cw < textbox->width) - gdk_draw_drawable(obj, priv->gc, src, 0, 0, + gdk_draw_drawable(obj, priv->gc, priv->pixmap, 0, 0, textbox->x + cw, textbox->y, textbox->width - cw, textbox->height);