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/gtkwin32embedwidget.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/gtkwin32embedwidget.c')
-rw-r--r-- | gtk/gtkwin32embedwidget.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkwin32embedwidget.c b/gtk/gtkwin32embedwidget.c index a1507da1d0..7daf0ae369 100644 --- a/gtk/gtkwin32embedwidget.c +++ b/gtk/gtkwin32embedwidget.c @@ -217,7 +217,6 @@ gtk_win32_embed_widget_realize (GtkWidget *widget) /* this isn't right - we should match our parent's visual/colormap. * though that will require handling "foreign" colormaps */ attributes.visual = gtk_widget_get_visual (widget); - attributes.colormap = gtk_widget_get_colormap (widget); attributes.event_mask = gtk_widget_get_events (widget); attributes.event_mask |= (GDK_EXPOSURE_MASK | GDK_KEY_PRESS_MASK | @@ -227,7 +226,7 @@ gtk_win32_embed_widget_realize (GtkWidget *widget) GDK_STRUCTURE_MASK | GDK_FOCUS_CHANGE_MASK); - attributes_mask = GDK_WA_VISUAL | GDK_WA_COLORMAP; + attributes_mask = GDK_WA_VISUAL; attributes_mask |= (gtk_window_get_title (window) ? GDK_WA_TITLE : 0); attributes_mask |= (attributes.wmclass_name ? GDK_WA_WMCLASS : 0); |