Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-07-19 17:48:25 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-07-19 17:48:25 (GMT)
commitf00d7c5897477b0b2bfa7ff7229c443ebb81a855 (patch)
tree4913b9eead1d537684df450d8ca55ef7fe0b190e /shell/ev-view.c
parent0606618980b8d31db5779ae35f5c4cf61a313da4 (diff)
Fix build with current poppler cvs head.
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
Diffstat (limited to 'shell/ev-view.c')
-rw-r--r--shell/ev-view.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index 2486bcd..d02d885 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -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);