diff options
author | Benjamin Otte <otte@redhat.com> | 2010-08-28 18:04:08 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-09-26 15:11:31 +0200 |
commit | e8a6bad00bc9c544cece170f01dd220e5abc3254 (patch) | |
tree | 5ed0e4e03140f34d32567121f70bc49fe031a46c /gtk/gtkviewport.c | |
parent | a38472c139ba20384e1ec93fca4bc789b0c69345 (diff) | |
download | gtk+-e8a6bad00bc9c544cece170f01dd220e5abc3254.tar.gz |
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.
Diffstat (limited to 'gtk/gtkviewport.c')
-rw-r--r-- | gtk/gtkviewport.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index d7d9adf873..863d17fb54 100644 --- a/gtk/gtkviewport.c +++ b/gtk/gtkviewport.c @@ -706,14 +706,13 @@ gtk_viewport_realize (GtkWidget *widget) attributes.window_type = GDK_WINDOW_CHILD; attributes.wclass = GDK_INPUT_OUTPUT; attributes.visual = gtk_widget_get_visual (widget); - attributes.colormap = gtk_widget_get_colormap (widget); event_mask = gtk_widget_get_events (widget) | GDK_EXPOSURE_MASK; /* We select on button_press_mask so that button 4-5 scrolls are trapped. */ attributes.event_mask = event_mask | GDK_BUTTON_PRESS_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); |