]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtktextview.c
Set the background of the windows to None instead of adding EXPOSURE_MASK,
[~andy/gtk] / gtk / gtktextview.c
index 9345b751733b772bf9329f3f5c8a43b390d26aee..04f8b26c583dc0add85a60c23732a66caf0d007f 100644 (file)
@@ -7174,7 +7174,7 @@ text_window_realize (GtkTextWindow *win,
   attributes.wclass = GDK_INPUT_OUTPUT;
   attributes.visual = gtk_widget_get_visual (win->widget);
   attributes.colormap = gtk_widget_get_colormap (win->widget);
-  attributes.event_mask = GDK_VISIBILITY_NOTIFY_MASK | GDK_EXPOSURE_MASK;
+  attributes.event_mask = GDK_VISIBILITY_NOTIFY_MASK;
 
   attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
 
@@ -7182,6 +7182,8 @@ text_window_realize (GtkTextWindow *win,
                                 &attributes,
                                 attributes_mask);
 
+  gdk_window_set_back_pixmap (win->window, NULL, FALSE);
+  
   gdk_window_show (win->window);
   gdk_window_set_user_data (win->window, win->widget);