# HG changeset patch # User Tomasz Mon # Date 1186749402 -7200 # Node ID 8da22338c194ff4610c17ec4ca61978b21491cf9 # Parent 4ced71e14fcba2b6cf6a2db02c7feb758456dfd1 fix skins with non-standard size posbar diff -r 4ced71e14fcb -r 8da22338c194 src/audacious/skin.c --- a/src/audacious/skin.c Fri Aug 10 05:36:53 2007 -0500 +++ b/src/audacious/skin.c Fri Aug 10 14:36:42 2007 +0200 @@ -1639,6 +1639,9 @@ gdk_draw_drawable(drawable, gc, skin_get_pixmap(bmp_active_skin, SKIN_MAIN)->pixmap, 212 + xdest, 41, xdest, ydest, width, height); height = pixmap->height/2; + } else if (pixmap_id == SKIN_POSBAR) { + /* last 59 pixels of SKIN_POSBAR are knobs (normal and selected) */ + gtk_widget_set_size_request(mainwin_position, pixmap->width - 59, pixmap->height); } else return; }