+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):
#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>
r.y2 = height - points->y1;
retval = poppler_page_get_text (poppler_page,
-#if 0
(PopplerSelectionStyle)style,
-#endif
&r);
g_object_unref (poppler_page);
retval = poppler_page_get_selection_region ((PopplerPage *)rc->data,
rc->scale,
-#if 0
(PopplerSelectionStyle)style,
-#endif
(PopplerRectangle *) points);
return retval;
}
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);
rect->y2 = poppler_rect.y2;
}
-#ifdef HAVE_FORMS
static EvFormField *
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);
}
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 */
+
[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
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)