forked from AuroraMiddleware/gtk
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:
parent
1b6750c1f1
commit
7be6d18f27
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user