diff options
author | Benjamin Otte <otte@redhat.com> | 2018-04-27 12:32:17 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-04-27 14:32:28 +0200 |
commit | 4aaeb7de1909844cc29e686382f6228f594919c8 (patch) | |
tree | d4115b3347084818d3a7f978108fa060d73c2d6f /testsuite/gtk/objects-finalize.c | |
parent | a86359af2bcde105c46bfa7cc676d01c9336ed64 (diff) | |
download | gtk+-4aaeb7de1909844cc29e686382f6228f594919c8.tar.gz |
dnd: Make GdkDragContext::device a (construct-only) property
Also remove gdk_drag_context_set_device() and insist on backends using
the property.
Diffstat (limited to 'testsuite/gtk/objects-finalize.c')
-rw-r--r-- | testsuite/gtk/objects-finalize.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/testsuite/gtk/objects-finalize.c b/testsuite/gtk/objects-finalize.c index 9ef2349231..bb3af68031 100644 --- a/testsuite/gtk/objects-finalize.c +++ b/testsuite/gtk/objects-finalize.c @@ -52,11 +52,12 @@ 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")) + 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); else - object = g_object_new (test_type, NULL); + object = g_object_new (test_type, NULL); g_assert (G_IS_OBJECT (object)); /* Make sure we have the only reference */ |