From e8a6bad00bc9c544cece170f01dd220e5abc3254 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 28 Aug 2010 18:04:08 +0200 Subject: gtk: Don't set colormap anymore when creating GDK windows Colormaps are about to be removed, so not using them sounds like an awesome idea. --- gtk/gtkdrawingarea.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gtk/gtkdrawingarea.c') diff --git a/gtk/gtkdrawingarea.c b/gtk/gtkdrawingarea.c index 6357ca649d..b3a2e6c39a 100644 --- a/gtk/gtkdrawingarea.c +++ b/gtk/gtkdrawingarea.c @@ -84,10 +84,9 @@ gtk_drawing_area_realize (GtkWidget *widget) attributes.height = allocation.height; attributes.wclass = GDK_INPUT_OUTPUT; attributes.visual = gtk_widget_get_visual (widget); - attributes.colormap = gtk_widget_get_colormap (widget); attributes.event_mask = gtk_widget_get_events (widget) | GDK_EXPOSURE_MASK; - 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); -- cgit v1.2.1