[gtk+] Fix notify test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix notify test
- Date: Wed, 27 Dec 2017 03:24:29 +0000 (UTC)
commit 1b6750c1f15cdafb793cb3d3dcb922c695136589
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Dec 26 20:05:07 2017 -0500
Fix notify test
We need to pass a display when creating more GDK objects now.
testsuite/gtk/notify.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/testsuite/gtk/notify.c b/testsuite/gtk/notify.c
index f6f3ab7..2bd03dd 100644
--- a/testsuite/gtk/notify.c
+++ b/testsuite/gtk/notify.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]