[gtk+] Fix objects-finalize test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix objects-finalize test
- Date: Wed, 27 Dec 2017 03:24:34 +0000 (UTC)
commit 7be6d18f272f64897ef5e6f4fd13f2b7d40250c7
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Dec 26 20:10:34 2017 -0500
Fix objects-finalize test
This test needs similar fixes to the notify test to
pass a display to GDK objects when instantiating them.
testsuite/gtk/objects-finalize.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/gtk/objects-finalize.c b/testsuite/gtk/objects-finalize.c
index 90b5045..b7b3586 100644
--- a/testsuite/gtk/objects-finalize.c
+++ b/testsuite/gtk/objects-finalize.c
@@ -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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]