Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
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 /shell
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.
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-view.c2
1 files changed, 2 insertions, 0 deletions
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;