Mercurial > audlegacy
changeset 3300:8da22338c194 trunk
fix skins with non-standard size posbar
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Fri, 10 Aug 2007 14:36:42 +0200 |
parents | 4ced71e14fcb |
children | 1588a64f0204 |
files | src/audacious/skin.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }