Commit 7193043f authored by Benjamin Otte's avatar Benjamin Otte

gtkrange: Fix copy/paste error

When factoring out a function in
b88584e7 I forgot to adapt these values.
parent 98da1ddf
......@@ -3599,8 +3599,8 @@ gtk_range_compute_slider_position (GtkRange *range,
/* Slider fits into the trough, with stepper_spacing on either side,
* and the size/position based on the adjustment or fixed, depending.
*/
priv->slider.y = priv->trough.y + trough_border;
priv->slider.height = priv->trough.height - trough_border * 2;
slider_rect->y = priv->trough.y + trough_border;
slider_rect->height = priv->trough.height - trough_border * 2;
/* Compute slider position/length */
left = priv->trough.x;
......@@ -3639,8 +3639,8 @@ gtk_range_compute_slider_position (GtkRange *range,
if (should_invert (range))
x = right - (x - left + width);
priv->slider.x = x;
priv->slider.width = width;
slider_rect->x = x;
slider_rect->width = width;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment