[evince/gnome-2-28] Use ev_page_cache_get_size instead of EvDocument directly
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evince/gnome-2-28] Use ev_page_cache_get_size instead of EvDocument directly
- Date: Thu, 29 Oct 2009 17:07:03 +0000 (UTC)
commit 7ff0dbcf7a396eea2de03de59b8259e72908158f
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Thu Oct 29 18:05:46 2009 +0100
Use ev_page_cache_get_size instead of EvDocument directly
shell/ev-print-operation.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/shell/ev-print-operation.c b/shell/ev-print-operation.c
index 730db80..8c27cd3 100644
--- a/shell/ev-print-operation.c
+++ b/shell/ev-print-operation.c
@@ -1644,10 +1644,11 @@ ev_print_operation_print_request_page_setup (EvPrintOperationPrint *print,
GtkPageSetup *setup)
{
EvPrintOperation *op = EV_PRINT_OPERATION (print);
- gdouble width, height;
+ gint width, height;
- ev_document_get_page_size (op->document, page_nr,
- &width, &height);
+ ev_page_cache_get_size (ev_page_cache_get (op->document),
+ page_nr, 0, 1.0,
+ &width, &height);
if (width > height)
gtk_page_setup_set_orientation (setup, GTK_PAGE_ORIENTATION_LANDSCAPE);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]