[gtk/wip/baedert/transforms6: 51/52] widget: Fix get_allocation



commit 427457f030233d8c598fe56a785e1635e5618c0b
Author: Timm Bäder <mail baedert org>
Date:   Thu Feb 14 07:49:27 2019 +0100

    widget: Fix get_allocation
    
    This was always returning 0/0 as the position, breaking things like the
    emoji chooser.

 gtk/gtkwidget.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 122e5429e1..1084139b61 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -11215,8 +11215,8 @@ gtk_widget_get_allocation (GtkWidget     *widget,
   g_return_if_fail (allocation != NULL);
 
   *allocation = (GtkAllocation) {
-    (int)graphene_matrix_get_value (&priv->transform, 0, 3),
-    (int)graphene_matrix_get_value (&priv->transform, 1, 3),
+    (int)graphene_matrix_get_value (&priv->transform, 3, 0),
+    (int)graphene_matrix_get_value (&priv->transform, 3, 1),
     priv->allocation.width,
     priv->allocation.height
   };


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