]> www.fi.muni.cz Git - evince.git/commitdiff
Fix build with current poppler cvs head.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 19 Jul 2007 17:48:25 +0000 (17:48 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Thu, 19 Jul 2007 17:48:25 +0000 (17:48 +0000)
2007-07-19  Carlos Garcia Campos  <carlosgc@gnome.org>
* backend/pdf/ev-poppler.cc: (ev_form_field_from_poppler_field):
* libdocument/ev-form-field.h:
* shell/ev-view.c: (ev_view_form_field_text_create_widget):
Fix build with current poppler cvs head.

svn path=/trunk/; revision=2574

ChangeLog
backend/pdf/ev-poppler.cc
libdocument/ev-form-field.h
shell/ev-view.c

index a90dc1996d79cc0942b4fc1404f2264cd7fd7650..64bffeed8ff215f1288ff2d664d03e5b73b6ce03 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-07-19  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * backend/pdf/ev-poppler.cc: (ev_form_field_from_poppler_field):
+       * libdocument/ev-form-field.h:
+       * shell/ev-view.c: (ev_view_form_field_text_create_widget):
+
+       Fix build with current poppler cvs head.
+       
 2007-07-11  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * cut-n-paste/zoom-control/ephy-zoom-control.c:
index 3b3fe2be7f0cf8af2ab524a1c06343468b447795..1c9f4ea3a94c7ee73a216e6afb4a1dbcecc2f991 100644 (file)
@@ -1829,9 +1829,6 @@ ev_form_field_from_poppler_field (PopplerFormField *poppler_field)
                                case POPPLER_FORM_TEXT_MULTILINE:
                                        ev_text_type = EV_FORM_FIELD_TEXT_MULTILINE;
                                        break;
-                               case POPPLER_FORM_TEXT_PASSWORD:
-                                       ev_text_type = EV_FORM_FIELD_TEXT_PASSWORD;
-                                       break;
                                case POPPLER_FORM_TEXT_FILE_SELECT:
                                        ev_text_type = EV_FORM_FIELD_TEXT_FILE_SELECT;
                                        break;
@@ -1843,6 +1840,7 @@ ev_form_field_from_poppler_field (PopplerFormField *poppler_field)
                        field_text->do_spell_check = poppler_form_field_text_do_spell_check (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);
 
                        field_text->text = poppler_form_field_text_get_text (poppler_field);
 
index 1405999893bcaaa2c2ee2bdf860a064e2e4a2f66..0b09af94febcb7409b0e06113b12812338f2518f 100644 (file)
@@ -81,7 +81,6 @@ typedef enum
 {
        EV_FORM_FIELD_TEXT_NORMAL,
        EV_FORM_FIELD_TEXT_MULTILINE,
-       EV_FORM_FIELD_TEXT_PASSWORD,
        EV_FORM_FIELD_TEXT_FILE_SELECT
 } EvFormFieldTextType;
 
@@ -125,6 +124,7 @@ struct _EvFormFieldText
        gboolean do_scroll : 1;
        gboolean comb : 1;
        gboolean is_rich_text : 1;
+       gboolean is_password;
 
        gint   max_len;
        gchar *text;
index 2486bcd0462bd53da99951745940cc87c871b751..d02d885032191c38bc90d00310cde2a66a9669b1 100644 (file)
@@ -1774,12 +1774,10 @@ ev_view_form_field_text_create_widget (EvView      *view,
                case EV_FORM_FIELD_TEXT_FILE_SELECT:
                        /* TODO */
                case EV_FORM_FIELD_TEXT_NORMAL:
-               case EV_FORM_FIELD_TEXT_PASSWORD:
                        text = gtk_entry_new ();
                        gtk_entry_set_has_frame (GTK_ENTRY (text), FALSE);
                        gtk_entry_set_max_length (GTK_ENTRY (text), field_text->max_len);
-                       gtk_entry_set_visibility (GTK_ENTRY (text),
-                                                 !(field_text->type == EV_FORM_FIELD_TEXT_PASSWORD));
+                       gtk_entry_set_visibility (GTK_ENTRY (text), !field_text->is_password);
                        
                        if (txt) {
                                gtk_entry_set_text (GTK_ENTRY (text), txt);
@@ -1798,7 +1796,7 @@ ev_view_form_field_text_create_widget (EvView      *view,
                
                        text = gtk_text_view_new ();
                        buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (text));
-               
+                       
                        if (txt) {
                                gtk_text_buffer_set_text (buffer, txt, -1);
                                g_free (txt);