Fix objects-finalize test

This test needs similar fixes to the notify test to
pass a display to GDK objects when instantiating them.
This commit is contained in:
Matthias Clasen 2017-12-26 20:10:34 -05:00
parent 1b6750c1f1
commit 7be6d18f27

View File

@ -52,6 +52,10 @@ test_finalize_object (gconstpointer data)
GType test_type = GPOINTER_TO_SIZE (data);
GObject *object;
if (g_str_equal (g_type_name (test_type), "GdkClipboard") ||
g_str_equal (g_type_name (test_type), "GdkDragContext"))
object = g_object_new (test_type, "display", gdk_display_get_default (), NULL);
else
object = g_object_new (test_type, NULL);
g_assert (G_IS_OBJECT (object));