From: Matthias Clasen Date: Wed, 8 Jan 2020 15:34:04 +0000 (-0500) Subject: fixed layout: Actually set child transforms X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~361^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=173952cbc8dd7eec08bca97a1d322473aafb027f;p=gtk4.git fixed layout: Actually set child transforms The code was unintentionally appending to the existing child transform, leading to ever-moving children when you call gtk_fixed_put. --- diff --git a/gtk/gtkfixedlayout.c b/gtk/gtkfixedlayout.c index 86de960f42..e5c90f15ab 100644 --- a/gtk/gtkfixedlayout.c +++ b/gtk/gtkfixedlayout.c @@ -182,7 +182,8 @@ gtk_fixed_layout_child_set_transform (GtkFixedLayoutChild *child, g_return_if_fail (GTK_IS_FIXED_LAYOUT_CHILD (child)); - child->transform = gsk_transform_transform (child->transform, transform); + gsk_transform_unref (child->transform); + child->transform = gsk_transform_ref (transform); layout = gtk_layout_child_get_layout_manager (GTK_LAYOUT_CHILD (child)); gtk_layout_manager_layout_changed (layout);