[gtk/wip/baedert/transforms6: 154/155] widget: Fix queue_allocate on transformed widgets



commit 11cf3f97225d387d7273d2b1c0690b84e6f19101
Author: Timm Bäder <mail baedert org>
Date:   Tue Jan 1 09:35:01 2019 +0100

    widget: Fix queue_allocate on transformed widgets
    
    If we just use gtk_widget_size_allocate here, we lose previously set
    transformations.

 gtk/gtkwidget.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 371887fa49..21974053bb 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -11870,7 +11870,11 @@ gtk_widget_ensure_allocate (GtkWidget *widget)
       int baseline;
 
       gtk_widget_get_allocated_size (widget, &allocation, &baseline);
-      gtk_widget_size_allocate (widget, &allocation, baseline);
+      gtk_widget_size_allocate_transformed (widget,
+                                            allocation.width,
+                                            allocation.height,
+                                            baseline,
+                                            &priv->allocated_transform);
     }
   else if (priv->alloc_needed_on_child)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]