]> www.fi.muni.cz Git - evince.git/commitdiff
get rid of the black flash.
authorJonathan Blandford <jrb@redhat.com>
Wed, 16 Feb 2005 11:30:45 +0000 (11:30 +0000)
committerJonathan Blandford <jrb@src.gnome.org>
Wed, 16 Feb 2005 11:30:45 +0000 (11:30 +0000)
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.

ChangeLog
shell/ev-view.c

index 9151621b1055a25f793a5ea9ab766ffaf2b07b2e..66090182e94875e35aa35f3dedb8e7a552cf89a0 100644 (file)
--- 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:
index f8fc8bed19f2e75398922be0012e2f2f9a65c35b..095bd24dbed72cab6974a20a433c3fd4d2249530 100644 (file)
@@ -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;