]> www.fi.muni.cz Git - evince.git/commitdiff
Show loading text centered. Fixes bug #433061
authorCarlos Garcia Campos <carlosgc@gnome.org>
Tue, 12 Jun 2007 15:34:24 +0000 (15:34 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Tue, 12 Jun 2007 15:34:24 +0000 (15:34 +0000)
2007-06-09  Carlos Garcia Campos  <carlosgc@gnome.org>
* shell/ev-view.c: (draw_loading_text):
Show loading text centered. Fixes bug #433061

svn path=/branches/gnome-2-18/; revision=2495

ChangeLog
shell/ev-view.c

index 14a7078bb8c47252395781d4d566dd035ced00b3..4b5f424c98101439499d59ca5f3ac8998f0b7590 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-06-09  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * shell/ev-view.c: (draw_loading_text):
+
+       Show loading text centered. Fixes bug #433061
+       
 2007-06-09  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * shell/ev-sidebar-thumbnails.c:
index 40223a4dc2cf1cd04836385504d572314917b94c..513ba871bae2407f4dcdd3b23a61e6dc41764e8e 100644 (file)
@@ -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);