]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-view.c
More correctly draw loading text when document is empty.
[evince.git] / shell / ev-view.c
index 8ac8aa7bbbcf093cfa06771c3ff808d67869f460..f903e20a2e1d99e3d8119628c1fda21ee5635f1c 100644 (file)
@@ -1605,8 +1605,13 @@ ev_view_expose_event (GtkWidget      *widget,
        int i;
 
        if (view->loading) {
+               GdkRectangle area = {0};
+               
+               area.width = widget->allocation.width;
+               area.height = widget->allocation.height;
+               
                draw_loading_text (view,
-                                  &(widget->allocation),
+                                  &area,
                                   &(event->area));
        }