]> www.fi.muni.cz Git - evince.git/commitdiff
More correctly draw loading text when document is empty.
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Tue, 21 Mar 2006 20:23:41 +0000 (20:23 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Tue, 21 Mar 2006 20:23:41 +0000 (20:23 +0000)
* shell/ev-view.c: (ev_view_expose_event):

More correctly draw loading text when document
is empty.

ChangeLog
shell/ev-view.c

index 283710bc91a35764225bb9f1885aaacc5a6584ba..868727d907aeb7fa18e8d82e56e8502dbdefa0b3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-03-21  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * shell/ev-view.c: (ev_view_expose_event):
+       
+       More correctly draw loading text when document
+       is empty.
+
 2006-03-21  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
 
        * shell/ev-view.c: (ev_view_scroll):
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));
        }