From: Nickolay V. Shmyrev Date: Tue, 21 Mar 2006 20:23:41 +0000 (+0000) Subject: More correctly draw loading text when document is empty. X-Git-Tag: EVINCE_0_5_3~68 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;ds=inline;h=aecb66e5a15ed4c610946edbd9752a21fe88415b;p=evince.git More correctly draw loading text when document is empty. * shell/ev-view.c: (ev_view_expose_event): More correctly draw loading text when document is empty. --- diff --git a/ChangeLog b/ChangeLog index 283710bc..868727d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-03-21 Nickolay V. Shmyrev + + * shell/ev-view.c: (ev_view_expose_event): + + More correctly draw loading text when document + is empty. + 2006-03-21 Nickolay V. Shmyrev * shell/ev-view.c: (ev_view_scroll): diff --git a/shell/ev-view.c b/shell/ev-view.c index 8ac8aa7b..f903e20a 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -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)); }