testsuite: Stop using gdk_surface_new_temp

We can just use regular toplevels here.
This commit is contained in:
Matthias Clasen 2019-12-30 01:23:26 -05:00 committed by Benjamin Otte
parent c1f71ee3e8
commit 723b894c19
2 changed files with 2 additions and 4 deletions

View File

@ -106,8 +106,7 @@ test_type (gconstpointer data)
instance = G_OBJECT (g_object_ref (gtk_settings_get_default ()));
else if (g_type_is_a (type, GDK_TYPE_SURFACE))
{
instance = G_OBJECT (g_object_ref (gdk_surface_new_temp (display,
&(GdkRectangle) { 0, 0, 100, 100 })));
instance = G_OBJECT (g_object_ref (gdk_surface_new_toplevel (display, 100, 100)));
}
else if (g_type_is_a (type, GTK_TYPE_FILTER_LIST_MODEL) ||
g_type_is_a (type, GTK_TYPE_NO_SELECTION) ||

View File

@ -425,8 +425,7 @@ test_type (gconstpointer data)
instance = G_OBJECT (g_object_ref (gtk_settings_get_default ()));
else if (g_type_is_a (type, GDK_TYPE_SURFACE))
{
instance = G_OBJECT (g_object_ref (gdk_surface_new_temp (display,
&(GdkRectangle) { 0, 0, 100, 100 })));
instance = G_OBJECT (g_object_ref (gdk_surface_new_toplevel (display, 100, 100)));
}
else if (g_str_equal (g_type_name (type), "GdkX11Cursor"))
instance = g_object_new (type, "display", display, NULL);