[evince] xps: Bump libgxps requirements to 0.2.0
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] xps: Bump libgxps requirements to 0.2.0
- Date: Sun, 20 Nov 2011 15:19:13 +0000 (UTC)
commit 740263e84f812e069c25d32e6fbf40bec4c061e2
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sun Nov 20 16:18:30 2011 +0100
xps: Bump libgxps requirements to 0.2.0
backend/xps/xps-document.c | 14 ++------------
configure.ac | 2 +-
2 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/backend/xps/xps-document.c b/backend/xps/xps-document.c
index 6e34f07..cbba96b 100644
--- a/backend/xps/xps-document.c
+++ b/backend/xps/xps-document.c
@@ -156,17 +156,7 @@ xps_document_get_page_size (EvDocument *document,
double *width,
double *height)
{
- GXPSPage *xps_page;
- guint w, h;
-
- xps_page = GXPS_PAGE (page->backend_page);
-
- gxps_page_get_size (xps_page, &w, &h);
-
- if (width)
- *width = (gdouble)w;
- if (height)
- *height = (gdouble)h;
+ gxps_page_get_size (GXPS_PAGE (page->backend_page), width, height);
}
static EvDocumentInfo *
@@ -210,7 +200,7 @@ xps_document_render (EvDocument *document,
EvRenderContext *rc)
{
GXPSPage *xps_page;
- guint page_width, page_height;
+ gdouble page_width, page_height;
guint width, height;
cairo_surface_t *surface;
cairo_t *cr;
diff --git a/configure.ac b/configure.ac
index 5324d22..5a85ade 100644
--- a/configure.ac
+++ b/configure.ac
@@ -638,7 +638,7 @@ AC_ARG_ENABLE(xps,
[enable_xps=yes])
if test "x$enable_xps" = "xyes"; then
- GXPS_REQUIRED=0.0.1
+ GXPS_REQUIRED=0.2.0
PKG_CHECK_MODULES(GXPS, libgxps >= $GXPS_REQUIRED,enable_xps=yes,enable_xps=no)
if test "x$enable_xps" = "xyes"; then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]