From 728859fe0a6254aa240ec042af7ef41eb3eb3461 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Tue, 12 Jun 2007 15:34:24 +0000 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ shell/ev-view.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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); -- 2.47.1