[gtk+] Fix defaultvalue test due to csw
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] Fix defaultvalue test due to csw
- Date: Wed, 8 Jul 2009 16:51:16 +0000 (UTC)
commit 8ebf278ebb23799682af45de512667d0473c9067
Author: Alexander Larsson <alexl redhat com>
Date: Wed Jul 8 16:59:14 2009 +0200
Fix defaultvalue test due to csw
Initialize GdkWindowAttr required fields. This makes sure toplevel
windows are not accidentally larger than 16bit.
gtk/tests/defaultvalue.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/tests/defaultvalue.c b/gtk/tests/defaultvalue.c
index 8451490..3d3b988 100644
--- a/gtk/tests/defaultvalue.c
+++ b/gtk/tests/defaultvalue.c
@@ -102,6 +102,9 @@ test_type (gconstpointer data)
{
GdkWindowAttr attributes;
attributes.window_type = GDK_WINDOW_TEMP;
+ attributes.event_mask = 0;
+ attributes.width = 100;
+ attributes.height = 100;
instance = g_object_ref (gdk_window_new (NULL, &attributes, 0));
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]