summaryrefslogtreecommitdiff
path: root/gtk/gtktextview.c
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2005-01-05 16:46:34 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2005-01-05 16:46:34 +0000
commit8b3a5e142470848426245fc09e7ff3f48d8ae11f (patch)
tree89ce5b96c1fd41c0546641724838bfac4a5b4776 /gtk/gtktextview.c
parent7e4cf78803652596177f68d2bc3b3bc5b5f959ce (diff)
downloadgdk-pixbuf-8b3a5e142470848426245fc09e7ff3f48d8ae11f.tar.gz
Set the background of the windows to None instead of adding EXPOSURE_MASK,
Wed Jan 5 11:42:49 2005 Søren Sandmann <sandmann@redhat.com> * gtk/gtkviewport.c (gtk_viewport_realize): * gtk/gtktextview.c ((text_window_realize): Set the background of the windows to None instead of adding EXPOSURE_MASK, as suggested by Owen in #162112.
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r--gtk/gtktextview.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 9345b7517..04f8b26c5 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -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);