[evince] [pdf] Fix build with poppler 0.14
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] [pdf] Fix build with poppler 0.14
- Date: Wed, 21 Jul 2010 14:38:56 +0000 (UTC)
commit 899c8f436d66c1f0cd7d9737a17731b6a792a09a
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Wed Jul 21 16:37:06 2010 +0200
[pdf] Fix build with poppler 0.14
Fixes bug #624904.
backend/pdf/ev-poppler.cc | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 5943a6d..efa755b 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -2546,6 +2546,7 @@ poppler_annot_color_to_gdk_color (PopplerAnnot *poppler_annot,
static EvAnnotationTextIcon
get_annot_text_icon (PopplerAnnotText *poppler_annot)
{
+#ifdef HAVE_POPPLER_PAGE_ADD_ANNOT
gchar *icon = poppler_annot_text_get_icon (poppler_annot);
EvAnnotationTextIcon retval;
@@ -2576,11 +2577,15 @@ get_annot_text_icon (PopplerAnnotText *poppler_annot)
g_free (icon);
return retval;
+#else
+ return EV_ANNOTATION_TEXT_ICON_UNKNOWN;
+#endif
}
static const gchar *
get_poppler_annot_text_icon (EvAnnotationTextIcon icon)
{
+#ifdef HAVE_POPPLER_PAGE_ADD_ANNOT
switch (icon) {
case EV_ANNOTATION_TEXT_ICON_NOTE:
return POPPLER_ANNOT_TEXT_ICON_NOTE;
@@ -2604,6 +2609,9 @@ get_poppler_annot_text_icon (EvAnnotationTextIcon icon)
default:
return POPPLER_ANNOT_TEXT_ICON_NOTE;
}
+#else
+ return "Note";
+#endif
}
static EvAnnotation *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]