Skip GdkX11GLContext in some object tests

Since it can't be constructed without specifying a GdkWindow,
which we don't have here.
This commit is contained in:
Matthias Clasen 2014-10-21 23:46:11 -04:00
parent 6440263ef3
commit 0f309c9dcf
2 changed files with 3 additions and 1 deletions

View File

@ -389,7 +389,8 @@ test_type (gconstpointer data)
g_str_equal (g_type_name (type), "GdkX11DeviceManagerXI2") ||
g_str_equal (g_type_name (type), "GdkX11Display") ||
g_str_equal (g_type_name (type), "GdkX11DisplayManager") ||
g_str_equal (g_type_name (type), "GdkX11Screen"))
g_str_equal (g_type_name (type), "GdkX11Screen") ||
g_str_equal (g_type_name (type), "GdkX11GLContext"))
return;
/* This throws a critical when the connection is dropped */

View File

@ -114,6 +114,7 @@ main (int argc, char **argv)
all_types[i] != GDK_TYPE_X11_DISPLAY &&
all_types[i] != GDK_TYPE_X11_DEVICE_MANAGER_XI2 &&
all_types[i] != GDK_TYPE_X11_DISPLAY_MANAGER &&
all_types[i] != GDK_TYPE_X11_GL_CONTEXT &&
#endif
/* Not allowed to finalize a GdkPixbufLoader without calling gdk_pixbuf_loader_close() */
all_types[i] != GDK_TYPE_PIXBUF_LOADER &&