[gtk/wip/baedert/transforms6: 13/18] widget: Fix queue_allocate on transformed widgets
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/transforms6: 13/18] widget: Fix queue_allocate on transformed widgets
- Date: Sat, 19 Jan 2019 12:40:47 +0000 (UTC)
commit ae0ba220cb9147fe198da93e10e68348cca5cccf
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]