gtk_hscale_pos_trough (GTK_HSCALE (widget), &x, &y, &w, &h);
- attributes.x = x + widget->allocation.x;
- attributes.y = y + widget->allocation.y;
+ attributes.x = x;
+ attributes.y = y;
attributes.width = w;
attributes.height = h;
attributes.wclass = GDK_INPUT_OUTPUT;
gtk_hscale_pos_trough (GTK_HSCALE (widget), &x, &y, &width, &height);
gdk_window_move_resize (range->trough,
- x + widget->allocation.x,
- y + widget->allocation.y, width, height);
+ x, y, width, height);
gtk_range_slider_update (GTK_RANGE (widget));
}
}
}
*x += 1;
*w -= 2;
+
+ *x += widget->allocation.x;
+ *y += widget->allocation.y;
}
static void