]> www.fi.muni.cz Git - evince.git/commitdiff
Get max length of text form fields.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 19 Jul 2007 17:58:44 +0000 (17:58 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Thu, 19 Jul 2007 17:58:44 +0000 (17:58 +0000)
2007-07-19  Carlos Garcia Campos  <carlosgc@gnome.org>
* 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

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

index 64bffeed8ff215f1288ff2d664d03e5b73b6ce03..e69ec31f115a83bc831c9db86aadce7ec8ad077e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-07-19  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * 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  <carlosgc@gnome.org>
 
        * backend/pdf/ev-poppler.cc: (ev_form_field_from_poppler_field):
index 1c9f4ea3a94c7ee73a216e6afb4a1dbcecc2f991..f96fdd423399607ffa8bcf98a22bacf85940424d 100644 (file)
@@ -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);
 
                }
index 95cf1bde8e2dd6ea245297eb4e3e3e19f9d38450..d6967870456f6acd3047f9bd61e7197b99a4e96b 100644 (file)
@@ -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)