diff options
author | Benjamin Otte <otte@redhat.com> | 2018-05-07 17:31:26 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-05-07 18:55:09 +0200 |
commit | 34d1ebc562c83136cd778749d86abfee58e28627 (patch) | |
tree | d5bc504dae584cc9f4fbb06b3c85eb196142af0f /testsuite/gtk/objects-finalize.c | |
parent | 80f5fd8435961c012c8c7202df3192631d564c6c (diff) | |
download | gtk+-34d1ebc562c83136cd778749d86abfee58e28627.tar.gz |
dnd: Make "formats" a construct-only property
... and hide the member variable inside the DragContextPrivate.
Diffstat (limited to 'testsuite/gtk/objects-finalize.c')
-rw-r--r-- | testsuite/gtk/objects-finalize.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/testsuite/gtk/objects-finalize.c b/testsuite/gtk/objects-finalize.c index bb3af68031..a712ee8aba 100644 --- a/testsuite/gtk/objects-finalize.c +++ b/testsuite/gtk/objects-finalize.c @@ -55,7 +55,14 @@ test_finalize_object (gconstpointer data) if (g_str_equal (g_type_name (test_type), "GdkClipboard")) object = g_object_new (test_type, "display", gdk_display_get_default (), NULL); else if (g_str_equal (g_type_name (test_type), "GdkDragContext")) - object = g_object_new (test_type, "device", gdk_seat_get_pointer (gdk_display_get_default_seat (gdk_display_get_default ())), NULL); + { + GdkContentFormats *formats = gdk_content_formats_new_for_gtype (G_TYPE_STRING); + object = g_object_new (test_type, + "device", gdk_seat_get_pointer (gdk_display_get_default_seat (gdk_display_get_default ())), + "formats", formats, + NULL); + gdk_content_formats_unref (formats); + } else object = g_object_new (test_type, NULL); g_assert (G_IS_OBJECT (object)); |