[gtk/wip/baedert/transforms5: 269/272] testformentry: Pass transform in size_allocate
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/transforms5: 269/272] testformentry: Pass transform in size_allocate
- Date: Fri, 9 Nov 2018 08:58:06 +0000 (UTC)
commit 523ab41db3fb0f96541030d3d5e55b31c2b5a3df
Author: Timm Bäder <mail baedert org>
Date: Sat Aug 18 17:06:20 2018 +0200
testformentry: Pass transform in size_allocate
tests/testformentry.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/tests/testformentry.c b/tests/testformentry.c
index 0105fd4030..9560abe5b6 100644
--- a/tests/testformentry.c
+++ b/tests/testformentry.c
@@ -55,18 +55,18 @@ gtk_form_entry_size_allocate (GtkWidget *widget,
x *= t;
- gtk_widget_size_allocate (self->placeholder,
- &(GtkAllocation) {
- x, y,
- width,
- placeholder_height
- }, -1);
-
graphene_matrix_init_scale (&m,
CLAMP (t, FINAL_SCALE, 1.0),
CLAMP (t, FINAL_SCALE, 1.0),
1);
- gtk_widget_set_transform (self->placeholder, &m);
+ graphene_matrix_translate (&m,
+ &GRAPHENE_POINT3D_INIT (x, y, 0));
+
+ gtk_widget_size_allocate_transformed (self->placeholder,
+ width,
+ placeholder_height,
+ -1,
+ &m);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]