From: Jonathan Blandford Date: Wed, 16 Feb 2005 11:30:45 +0000 (+0000) Subject: get rid of the black flash. X-Git-Tag: EVINCE_0_1_5~49 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=0b36c1cd0326cfbb3ed5cddfee5b1cc27e0eb317;p=evince.git get rid of the black flash. Wed Feb 16 06:30:13 2005 Jonathan Blandford * shell/ev-view.c (ev_view_realize): get rid of the black flash. --- diff --git a/ChangeLog b/ChangeLog index 9151621b..66090182 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Feb 16 06:30:13 2005 Jonathan Blandford + + * shell/ev-view.c (ev_view_realize): get rid of the black flash. + Tue Feb 15 22:27:13 2005 Jonathan Blandford * backend/ev-document-misc.h: diff --git a/shell/ev-view.c b/shell/ev-view.c index f8fc8bed..095bd24d 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;