From 6965a51a28f76d0a669d0d1c9fdc089e6cf46c7d Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Thu, 20 Aug 2009 16:30:46 +0000 Subject: [libview] Remove ev_page_cache_get_size() from EvPageCache --- (limited to 'libview/ev-page-cache.c') diff --git a/libview/ev-page-cache.c b/libview/ev-page-cache.c index 1bf689e..8fba8c6 100644 --- a/libview/ev-page-cache.c +++ b/libview/ev-page-cache.c @@ -149,32 +149,6 @@ ev_page_cache_set_page_label (EvPageCache *page_cache, return FALSE; } -void -ev_page_cache_get_size (EvPageCache *page_cache, - gint page, - gint rotation, - gfloat scale, - gint *width, - gint *height) -{ - double w, h; - - g_return_if_fail (EV_IS_PAGE_CACHE (page_cache)); - - ev_document_get_page_size (page_cache->document, page, &w, &h); - - w = w * scale + 0.5; - h = h * scale + 0.5; - - if (rotation == 0 || rotation == 180) { - if (width) *width = (int)w; - if (height) *height = (int)h; - } else { - if (width) *width = (int)h; - if (height) *height = (int)w; - } -} - #define PAGE_CACHE_STRING "ev-page-cache" EvPageCache * -- cgit v0.9.1