diff options
author | Søren Sandmann <sandmann@redhat.com> | 2005-01-05 16:46:34 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2005-01-05 16:46:34 +0000 |
commit | 8b3a5e142470848426245fc09e7ff3f48d8ae11f (patch) | |
tree | 89ce5b96c1fd41c0546641724838bfac4a5b4776 /gtk/gtkviewport.c | |
parent | 7e4cf78803652596177f68d2bc3b3bc5b5f959ce (diff) | |
download | gtk+-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/gtkviewport.c')
-rw-r--r-- | gtk/gtkviewport.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index a5c0a232b6..7026834b6f 100644 --- a/gtk/gtkviewport.c +++ b/gtk/gtkviewport.c @@ -621,11 +621,13 @@ gtk_viewport_realize (GtkWidget *widget) attributes.y = view_allocation.y; attributes.width = view_allocation.width; attributes.height = view_allocation.height; - attributes.event_mask = GDK_EXPOSURE_MASK; + attributes.event_mask = 0; viewport->view_window = gdk_window_new (widget->window, &attributes, attributes_mask); gdk_window_set_user_data (viewport->view_window, viewport); + gdk_window_set_back_pixmap (viewport->view_window, NULL, FALSE); + attributes.x = - hadjustment->value; attributes.y = - vadjustment->value; attributes.width = hadjustment->upper; |