[gtk+] tests: Don't set colormap when creating offscreen windows



commit 600f52321b53f21e1051ae0923c4232619cecc89
Author: Benjamin Otte <otte redhat com>
Date:   Sat Aug 28 18:05:47 2010 +0200

    tests: Don't set colormap when creating offscreen windows

 tests/gtkoffscreenbox.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/tests/gtkoffscreenbox.c b/tests/gtkoffscreenbox.c
index cd70c3e..a889296 100644
--- a/tests/gtkoffscreenbox.c
+++ b/tests/gtkoffscreenbox.c
@@ -264,10 +264,9 @@ gtk_offscreen_box_realize (GtkWidget *widget)
 			| GDK_LEAVE_NOTIFY_MASK;
 
   attributes.visual = gtk_widget_get_visual (widget);
-  attributes.colormap = gtk_widget_get_colormap (widget);
   attributes.wclass = GDK_INPUT_OUTPUT;
 
-  attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
+  attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL;
 
   window = gdk_window_new (gtk_widget_get_parent_window (widget),
                            &attributes, attributes_mask);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]