[gtk/wip/baedert/transforms6: 55/61] widget: Fix queue_allocate on transformed widgets



commit ee908240684b6218f1317c2c50bde93d754a6c10
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 de96adf080..3fbb0265ab 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -11877,7 +11877,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]