Commit 1f1be208 authored by Timm Bäder's avatar Timm Bäder 👎

testsuite: Fix translate test for size_allocate changes

gtk_widget_set_transform is still a hack that will eventually go away
but it's also still useful for testing.
parent 997e4381
......@@ -170,13 +170,14 @@ translate_with_parent (void)
/* Now try a translation... */
graphene_matrix_init_translate (&transform,
&(graphene_point3d_t){20, 0, 0});
gtk_widget_set_transform (child, &transform);
gtk_widget_set_margin_start (child, 0);
gtk_widget_measure (child, GTK_ORIENTATION_HORIZONTAL, -1, NULL, NULL, NULL, NULL);
gtk_widget_measure (parent, GTK_ORIENTATION_HORIZONTAL, -1, NULL, NULL, NULL, NULL);
gtk_widget_size_allocate (parent, &(GtkAllocation){0, 0, WIDTH * 10, HEIGHT * 10}, -1);
graphene_matrix_init_translate (&transform,
&(graphene_point3d_t){20, 0, 0});
gtk_widget_set_transform (child, &transform);
{
double dx, dy;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment