From: Carlos Garcia Campos Date: Tue, 12 Jun 2007 15:34:24 +0000 (+0000) Subject: Show loading text centered. Fixes bug #433061 X-Git-Tag: EVINCE_0_8_2~12 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=728859fe0a6254aa240ec042af7ef41eb3eb3461;p=evince.git Show loading text centered. Fixes bug #433061 2007-06-09 Carlos Garcia Campos * shell/ev-view.c: (draw_loading_text): Show loading text centered. Fixes bug #433061 svn path=/branches/gnome-2-18/; revision=2495 --- diff --git a/ChangeLog b/ChangeLog index 14a7078b..4b5f424c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-06-09 Carlos Garcia Campos + + * shell/ev-view.c: (draw_loading_text): + + Show loading text centered. Fixes bug #433061 + 2007-06-09 Carlos Garcia Campos * shell/ev-sidebar-thumbnails.c: diff --git a/shell/ev-view.c b/shell/ev-view.c index 40223a4d..513ba871 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -2856,7 +2856,7 @@ draw_loading_text (EvView *view, ev_document_fc_mutex_unlock (); } - width = cairo_image_surface_get_width (view->loading_text) / 2; + width = (page_area->width - cairo_image_surface_get_width (view->loading_text)) / 2; height = (page_area->height - cairo_image_surface_get_height (view->loading_text)) / 2; cr = gdk_cairo_create (GTK_WIDGET (view)->window);