Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2005-02-16 11:30:45 (GMT)
committer Jonathan Blandford <jrb@src.gnome.org>2005-02-16 11:30:45 (GMT)
commit0b36c1cd0326cfbb3ed5cddfee5b1cc27e0eb317 (patch)
tree9d33f357a0e37bbf545843b1ce84a0fe2f85638e
parent6559e35a6d539a482c7363710b6153173966e8f9 (diff)
get rid of the black flash.
Wed Feb 16 06:30:13 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-view.c (ev_view_realize): get rid of the black flash.
-rw-r--r--ChangeLog4
-rw-r--r--shell/ev-view.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9151621..6609018 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Feb 16 06:30:13 2005 Jonathan Blandford <jrb@redhat.com>
+
+ * shell/ev-view.c (ev_view_realize): get rid of the black flash.
+
Tue Feb 15 22:27:13 2005 Jonathan Blandford <jrb@redhat.com>
* backend/ev-document-misc.h:
diff --git a/shell/ev-view.c b/shell/ev-view.c
index f8fc8be..095bd24 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -280,6 +280,7 @@ ev_view_realize (GtkWidget *widget)
GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED);
+
attributes.window_type = GDK_WINDOW_CHILD;
attributes.wclass = GDK_INPUT_OUTPUT;
attributes.visual = gtk_widget_get_visual (widget);
@@ -298,6 +299,7 @@ ev_view_realize (GtkWidget *widget)
GDK_WA_VISUAL);
gdk_window_set_user_data (widget->window, widget);
widget->style = gtk_style_attach (widget->style, widget->window);
+ gdk_window_set_background (widget->window, &widget->style->mid[widget->state]);
attributes.x = 0;
attributes.y = 0;