From: Timm Bäder Date: Mon, 30 Oct 2017 16:47:59 +0000 (+0100) Subject: viewport: Simplify child allocation X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~23^2~1015 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=23a1328fdaedf6891d5982e6c0fb8add44b21a99;p=gtk4.git viewport: Simplify child allocation allocation->x and allocation->y are always 0 --- diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index 870f358981..cb47726c66 100644 --- a/gtk/gtkviewport.c +++ b/gtk/gtkviewport.c @@ -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);