Fix notify test

We need to pass a display when creating more GDK objects now.
This commit is contained in:
Matthias Clasen 2017-12-26 20:05:07 -05:00
parent 8c10849094
commit 1b6750c1f1

View File

@ -402,11 +402,15 @@ test_type (gconstpointer data)
instance = G_OBJECT (g_object_ref (gtk_settings_get_default ()));
else if (g_type_is_a (type, GDK_TYPE_WINDOW))
{
instance = G_OBJECT (g_object_ref (gdk_window_new_popup (gdk_display_get_default (),
instance = G_OBJECT (g_object_ref (gdk_window_new_popup (display,
&(GdkRectangle) { 0, 0, 100, 100 })));
}
else if (g_str_equal (g_type_name (type), "GdkX11Cursor"))
instance = g_object_new (type, "display", display, NULL);
else if (g_str_equal (g_type_name (type), "GdkClipboard"))
instance = g_object_new (type, "display", display, NULL);
else if (g_str_equal (g_type_name (type), "GdkDragContext"))
instance = g_object_new (type, "display", display, NULL);
else
instance = g_object_new (type, NULL);