]> www.fi.muni.cz Git - evince.git/commitdiff
Bump requirements to poppler 0.6 and drop all ifdefs used. Double and
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 3 Sep 2007 20:58:54 +0000 (20:58 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Mon, 3 Sep 2007 20:58:54 +0000 (20:58 +0000)
2007-09-03  Carlos Garcia Campos  <carlosgc@gnome.org>
* configure.ac:
* backend/pdf/ev-poppler.cc: (pdf_selection_get_selected_text),
(pdf_selection_get_selection_region),
(pdf_selection_get_selection_map),
(ev_form_field_from_poppler_field):
Bump requirements to poppler 0.6 and drop all ifdefs used. Double
and triple click selections are enabled again now.

svn path=/trunk/; revision=2661

ChangeLog
backend/pdf/ev-poppler.cc
configure.ac

index 0c596c938d332d45a7b3faa7be37a672a9cdd94e..2649e2a04077133d6e5f17c3c46e94dd63bbb0df 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2007-09-03  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * configure.ac:
+       * backend/pdf/ev-poppler.cc: (pdf_selection_get_selected_text),
+       (pdf_selection_get_selection_region),
+       (pdf_selection_get_selection_map),
+       (ev_form_field_from_poppler_field):
+
+       Bump requirements to poppler 0.6 and drop all ifdefs used. Double
+       and triple click selections are enabled again now.
+       
 2007-09-03  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * shell/ev-window.c: (ev_window_add_history):
index 1fa235431dd7f05c92c07b7b416f6f5fddb75438..4ddea1a40adef8776db9de142291b65438766eaa 100644 (file)
 
 #include "config.h"
 
-#ifdef HAVE_POPPLER_FORM_FIELD_BUTTON_GET_BUTTON_TYPE
-#define HAVE_FORMS
-#endif
-
 #include <math.h>
 #include <string.h>
 #include <gtk/gtk.h>
@@ -1871,9 +1867,7 @@ pdf_selection_get_selected_text (EvSelection     *selection,
        r.y2 = height - points->y1;
 
        retval = poppler_page_get_text (poppler_page,
-#if 0
                                        (PopplerSelectionStyle)style,
-#endif
                                        &r);
 
        g_object_unref (poppler_page);
@@ -1896,9 +1890,7 @@ pdf_selection_get_selection_region (EvSelection     *selection,
 
        retval = poppler_page_get_selection_region ((PopplerPage *)rc->data,
                                                    rc->scale,
-#if 0
                                                    (PopplerSelectionStyle)style,
-#endif
                                                    (PopplerRectangle *) points);
        return retval;
 }
@@ -1920,9 +1912,7 @@ pdf_selection_get_selection_map (EvSelection     *selection,
        points.y1 = 0.0;
        poppler_page_get_size (poppler_page, &(points.x2), &(points.y2));
        retval = poppler_page_get_selection_region (poppler_page, 1.0,
-#if 0
                                                    POPPLER_SELECTION_GLYPH,
-#endif
                                                    &points);
        g_object_unref (poppler_page);
 
@@ -1989,7 +1979,6 @@ pdf_document_get_crop_box (EvDocument  *document,
        rect->y2 = poppler_rect.y2;
 }
 
-#ifdef HAVE_FORMS
 static EvFormField *
 ev_form_field_from_poppler_field (PopplerFormField *poppler_field)
 {
@@ -2026,10 +2015,7 @@ ev_form_field_from_poppler_field (PopplerFormField *poppler_field)
                        field_text->do_scroll = poppler_form_field_text_do_scroll (poppler_field);
                        field_text->is_rich_text = poppler_form_field_text_is_rich_text (poppler_field);
                        field_text->is_password = poppler_form_field_text_is_password (poppler_field);
-                       
-#ifdef HAVE_POPPLER_FORM_FIELD_TEXT_GET_MAX_LEN
                        field_text->max_len = poppler_form_field_text_get_max_len (poppler_field);
-#endif
                        field_text->text = poppler_form_field_text_get_text (poppler_field);
 
                }
@@ -2358,4 +2344,4 @@ pdf_document_document_forms_iface_init (EvDocumentFormsIface *iface)
        iface->form_field_choice_set_text = pdf_document_forms_form_field_choice_set_text;
        iface->form_field_choice_get_text = pdf_document_forms_form_field_choice_get_text;
 }
-#endif /* HAVE_FORMS */
+
index c6849a0f816e7363ca505e0941324ec2e71d1dd8..49bc4e49229f0c54a24c18ab492a880e72a43008 100644 (file)
@@ -235,7 +235,7 @@ AC_ARG_ENABLE(pdf,
               [AC_HELP_STRING([--enable-pdf], [Compile with pdf support])],enable_pdf="$enableval",enable_pdf=yes)
 
 if test "x$enable_pdf" = "xyes"; then
-    POPPLER_REQUIRED=0.5.9
+    POPPLER_REQUIRED=0.6
     PKG_CHECK_MODULES(POPPLER, poppler-glib >= $POPPLER_REQUIRED,enable_pdf=yes,enable_pdf=no)
 
     if test "x$enable_pdf" = "xyes"; then
@@ -247,11 +247,6 @@ if test "x$enable_pdf" = "xyes"; then
            evince_save_LIBS=$LIBS
            LIBS="$LIBS $FRONTEND_LIBS"
            AC_CHECK_FUNCS(poppler_page_render)
-           dnl we need latest poppler cvs head, 
-           dnl this function was the last to be added
-           AC_CHECK_FUNCS(poppler_form_field_button_get_button_type)
-           AC_CHECK_FUNCS(poppler_form_field_text_get_max_len)
-           AC_CHECK_FUNCS(poppler_form_field_text_is_password)
            LIBS=$evince_save_LIBS
 
            PKG_CHECK_MODULES(CAIRO_PDF, cairo-pdf, enable_cairo_pdf=yes, enable_cairo_pdf=no)