Mercurial > audlegacy
diff src/audacious/ui_skinned_horizontal_slider.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 | f02623377013 |
children | 7ed2be7e885e |
line wrap: on
line diff
--- a/src/audacious/ui_skinned_horizontal_slider.c Fri Aug 10 15:14:20 2007 +0200 +++ b/src/audacious/ui_skinned_horizontal_slider.c Fri Aug 10 15:29:35 2007 +0200 @@ -219,6 +219,11 @@ widget->allocation = *allocation; widget->allocation.x *= (1+priv->double_size); widget->allocation.y *= (1+priv->double_size); + if (priv->knob_height == priv->height) + priv->knob_height = allocation->height; + priv->width = allocation->width; + priv->height = allocation->height; + if (GTK_WIDGET_REALIZED (widget)) gdk_window_move_resize(widget->window, widget->allocation.x, widget->allocation.y, allocation->width, allocation->height);