]> 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:32:20 +0000 (15:32 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Tue, 12 Jun 2007 15:32:20 +0000 (15:32 +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=/trunk/; revision=2494

ChangeLog
shell/ev-view.c

index 4fbea8985dcd39d3453a8af028a4134f94754904..d378f2b8937d3fe39474012830b8f66bb56f4f3f 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 9f59ea1d18445a3ffd72e8ae70233a95d0fb19bb..bcf3374e2592bd6fae556394abd203e6d3c1cf10 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);