# HG changeset patch # User Tomasz Mon # Date 1186836379 -7200 # Node ID 7ed2be7e885eecc2a864a50762d11fc71ab109f8 # Parent 9c53688bb559239f36786926b009a31ceef9ee16 fix doublesize diff -r 9c53688bb559 -r 7ed2be7e885e src/audacious/ui_skinned_horizontal_slider.c --- a/src/audacious/ui_skinned_horizontal_slider.c Sat Aug 11 07:34:28 2007 -0500 +++ b/src/audacious/ui_skinned_horizontal_slider.c Sat Aug 11 14:46:19 2007 +0200 @@ -219,10 +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; + priv->knob_height = allocation->height/(priv->double_size ? 2 : 1); + priv->width = allocation->width/(priv->double_size ? 2 : 1); + priv->height = allocation->height/(priv->double_size ? 2 : 1); if (GTK_WIDGET_REALIZED (widget)) gdk_window_move_resize(widget->window, widget->allocation.x, widget->allocation.y, allocation->width, allocation->height);