Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-06-12 15:32:20 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-06-12 15:32:20 (GMT)
commit09854a9ec3e45f868fee64f2ab991bf82fd731b3 (patch)
treeb1c235fa27b92204413af068b872e3f0804e8950
parent2e4b5a98297698180c1be5adffe809210bdcadb2 (diff)
Show loading text centered. Fixes bug #433061
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
-rw-r--r--ChangeLog6
-rw-r--r--shell/ev-view.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4fbea89..d378f2b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
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:
(ev_sidebar_thumbnails_set_loading_icon):
diff --git a/shell/ev-view.c b/shell/ev-view.c
index 9f59ea1..bcf3374 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);