+2005-06-24 Marco Pesenti Gritti <mpg@redhat.com>
+
+ * pdf/ev-poppler.cc:
+
+ Enable rotation, require poppler cvs. Fix a leak.
+
2005-06-24 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* shell/ev-window.c: (update_action_sensitivity):
static PopplerOrientation
get_document_orientation (PdfDocument *pdf_document)
{
-#ifdef POPPLER_ORIENTATION
+ PopplerOrientation orientation;
PopplerPage *page;
/* Should prolly be smarter here and check more than first page */
page = poppler_document_get_page (pdf_document->document, 0);
if (page) {
- return poppler_page_get_orientation (page);
+ orientation = poppler_page_get_orientation (page);
} else {
- return POPPLER_ORIENTATION_PORTRAIT;
+ orientation = POPPLER_ORIENTATION_PORTRAIT;
}
g_object_unref (page);
-#else
- return POPPLER_ORIENTATION_PORTRAIT;
-#endif
+
+ return orientation;
}
static gboolean