mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
testsuite: Stop using gdk_surface_new_temp
We can just use regular toplevels here.
This commit is contained in:
parent
c1f71ee3e8
commit
723b894c19
@ -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) ||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user