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



commit 92d4267a947603fc5510ecf6e54f3ae30debad64
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 7063fb7179..e1eef61ed5 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -11914,7 +11914,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]