[gtk/wip/baedert/transforms6: 267/273] widget: Fix queue_allocate on transformed widgets



commit 2bbdf0e1b789ba23057bbb4bd32bae133bbceb7e
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 175cdfda42..d34fe67c28 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -11979,7 +11979,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]