]> www.fi.muni.cz Git - evince.git/commitdiff
[pdf] Fix build with poppler 0.14
authorCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 21 Jul 2010 14:37:06 +0000 (16:37 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Wed, 21 Jul 2010 14:38:43 +0000 (16:38 +0200)
Fixes bug #624904.

backend/pdf/ev-poppler.cc

index 5943a6d73d4d2f0ce081b0e3c5a40875761106db..efa755bbc286656ff4458d418037cbbdc37ea4a7 100644 (file)
@@ -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 *