]> Pileus Git - ~andy/gtk/commitdiff
Set the background of the windows to None instead of adding EXPOSURE_MASK,
authorSøren Sandmann <sandmann@redhat.com>
Wed, 5 Jan 2005 16:46:34 +0000 (16:46 +0000)
committerSøren Sandmann Pedersen <ssp@src.gnome.org>
Wed, 5 Jan 2005 16:46:34 +0000 (16:46 +0000)
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.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktextview.c
gtk/gtkviewport.c

index 11a4b81b16bc269ccca7234fa3c466599e5aaa1e..63e103b76d8d47cb90ee38cca5612270261f49ba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
 2005-01-05  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update 
index 11a4b81b16bc269ccca7234fa3c466599e5aaa1e..63e103b76d8d47cb90ee38cca5612270261f49ba 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2005-01-05  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update 
index 11a4b81b16bc269ccca7234fa3c466599e5aaa1e..63e103b76d8d47cb90ee38cca5612270261f49ba 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2005-01-05  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update 
index 11a4b81b16bc269ccca7234fa3c466599e5aaa1e..63e103b76d8d47cb90ee38cca5612270261f49ba 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2005-01-05  Matthias Clasen  <mclasen@redhat.com>
 
        * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Update 
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);
 
index a5c0a232b6abb7bda259b3b93a0e288a383bcab8..7026834b6f8f593a5b2819adb69e295863f7698a 100644 (file)
@@ -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;