[gtk] widget: Compare adjusted sizes in size_allocate



commit c23afb2c8618a9fa8342a38e05bb368948137b4e
Author: Timm Bäder <mail baedert org>
Date:   Sun Oct 6 18:11:08 2019 +0200

    widget: Compare adjusted sizes in size_allocate

 gtk/gtkwidget.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 8880faba97..4ba950f1e5 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -4342,8 +4342,6 @@ gtk_widget_allocate (GtkWidget    *widget,
   priv->alloc_needed = FALSE;
 
   baseline_changed = priv->allocated_size_baseline != baseline;
-  size_changed = (priv->allocated_width != width ||
-                  priv->allocated_height != height);
   transform_changed = !gsk_transform_equal (priv->allocated_transform, transform);
 
   gsk_transform_unref (priv->allocated_transform);
@@ -4400,6 +4398,8 @@ gtk_widget_allocate (GtkWidget    *widget,
                                      &natural_height,
                                      &adjusted.y,
                                      &adjusted.height);
+  size_changed = (priv->width != adjusted.width) || (priv->height != adjusted.height);
+
   if (baseline >= 0)
     baseline -= priv->margin.top;
 


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