Mercurial > audlegacy
diff src/audacious/skin.c @ 3305:6cadc2ddf4cd trunk
revise 19ad8ea66a03: fix skins with non-standard size posbar
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Fri, 10 Aug 2007 15:29:35 +0200 |
parents | 8da22338c194 |
children | 968144b94ece |
line wrap: on
line diff
--- a/src/audacious/skin.c Fri Aug 10 15:14:20 2007 +0200 +++ b/src/audacious/skin.c Fri Aug 10 15:29:35 2007 +0200 @@ -173,6 +173,11 @@ playlistwin_update_list(playlist_get_active()); + SkinPixmap *pixmap; + pixmap = &bmp_active_skin->pixmaps[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); + return TRUE; } @@ -1639,9 +1644,6 @@ 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; }