From: Carlos Garcia Campos Date: Thu, 19 Jul 2007 17:58:44 +0000 (+0000) Subject: Get max length of text form fields. X-Git-Tag: EVINCE_0_9_3~26 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=479ac9953cc364161b7ec1541e6234223079d988;p=evince.git Get max length of text form fields. 2007-07-19 Carlos Garcia Campos * configure.ac: * backend/pdf/ev-poppler.cc: (ev_form_field_from_poppler_field): Get max length of text form fields. svn path=/trunk/; revision=2575 --- diff --git a/ChangeLog b/ChangeLog index 64bffeed..e69ec31f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-07-19 Carlos Garcia Campos + + * configure.ac: + * backend/pdf/ev-poppler.cc: (ev_form_field_from_poppler_field): + + Get max length of text form fields. + 2007-07-19 Carlos Garcia Campos * backend/pdf/ev-poppler.cc: (ev_form_field_from_poppler_field): diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index 1c9f4ea3..f96fdd42 100644 --- a/backend/pdf/ev-poppler.cc +++ b/backend/pdf/ev-poppler.cc @@ -1841,7 +1841,10 @@ 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); } diff --git a/configure.ac b/configure.ac index 95cf1bde..d6967870 100644 --- a/configure.ac +++ b/configure.ac @@ -250,6 +250,7 @@ if test "x$enable_pdf" = "xyes"; then 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) LIBS=$evince_save_LIBS PKG_CHECK_MODULES(CAIRO_PDF, cairo-pdf, enable_cairo_pdf=yes, enable_cairo_pdf=no)