mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
testsuite: Use a proper texture on defaultvalue test
This commit is contained in:
parent
830846b39c
commit
77434fc9f9
@ -123,6 +123,13 @@ test_type (gconstpointer data)
|
||||
NULL);
|
||||
g_object_unref (list_store);
|
||||
}
|
||||
else if (g_type_is_a (type, GDK_TYPE_TEXTURE))
|
||||
{
|
||||
static const guint8 pixels[4] = { 0xff, 0x00, 0x00, 0xff };
|
||||
GBytes *bytes = g_bytes_new_static (pixels, sizeof (pixels));
|
||||
instance = (GObject *) gdk_memory_texture_new (1, 1, GDK_MEMORY_DEFAULT, bytes, 4);
|
||||
g_bytes_unref (bytes);
|
||||
}
|
||||
else if (g_type_is_a (type, GSK_TYPE_GL_SHADER))
|
||||
{
|
||||
GBytes *bytes = g_bytes_new_static ("", 0);
|
||||
|
Loading…
Reference in New Issue
Block a user