Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--shell/ev-view.c14
2 files changed, 13 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 743623c..f19add6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2007-07-09 Carlos Garcia Campos <carlosgc@gnome.org>
+ * shell/ev-view.c: (ev_view_form_field_choice_save):
+
+ Fix selection of first item in list form fields.
+
+2007-07-09 Carlos Garcia Campos <carlosgc@gnome.org>
+
* shell/ev-pixbuf-cache.c: (add_job), (add_job_if_needed),
(ev_pixbuf_cache_reload_page),
(ev_pixbuf_cache_get_form_field_mapping):
diff --git a/shell/ev-view.c b/shell/ev-view.c
index 468a894..f46f165 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -1761,13 +1761,13 @@ ev_view_form_field_choice_save (EvView *view,
if (field_choice->is_editable) {
ev_document_forms_form_field_choice_set_text (EV_DOCUMENT_FORMS (view->document),
field, field_choice->text);
- }
-
- ev_document_forms_form_field_choice_unselect_all (EV_DOCUMENT_FORMS (view->document), field);
- for (l = field_choice->selected_items; l && l->data; l = g_list_next (l)) {
- ev_document_forms_form_field_choice_select_item (EV_DOCUMENT_FORMS (view->document),
- field,
- GPOINTER_TO_INT (l->data));
+ } else {
+ ev_document_forms_form_field_choice_unselect_all (EV_DOCUMENT_FORMS (view->document), field);
+ for (l = field_choice->selected_items; l; l = g_list_next (l)) {
+ ev_document_forms_form_field_choice_select_item (EV_DOCUMENT_FORMS (view->document),
+ field,
+ GPOINTER_TO_INT (l->data));
+ }
}
field->changed = FALSE;
ev_pixbuf_cache_reload_page (view->pixbuf_cache,