forked from AuroraMiddleware/gtk
viewport: Simplify child allocation
allocation->x and allocation->y are always 0
This commit is contained in:
parent
f576002e9e
commit
23a1328fda
@ -526,8 +526,8 @@ gtk_viewport_size_allocate (GtkWidget *widget,
|
||||
{
|
||||
GtkAllocation child_allocation, child_clip;
|
||||
|
||||
child_allocation.x = allocation->x - gtk_adjustment_get_value (hadjustment);
|
||||
child_allocation.y = allocation->y - gtk_adjustment_get_value (vadjustment);
|
||||
child_allocation.x = - gtk_adjustment_get_value (hadjustment);
|
||||
child_allocation.y = - gtk_adjustment_get_value (vadjustment);
|
||||
child_allocation.width = gtk_adjustment_get_upper (hadjustment);
|
||||
child_allocation.height = gtk_adjustment_get_upper (vadjustment);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user