[evince] libview: Fix Editable Choice Fields
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] libview: Fix Editable Choice Fields
- Date: Mon, 11 Feb 2013 16:11:53 +0000 (UTC)
commit a2cfcfe5733202ed57bfca8c5758751ebb0bf21d
Author: Josà Aliste <jaliste src gnome org>
Date: Mon Feb 11 16:33:22 2013 +0100
libview: Fix Editable Choice Fields
Editable choice fields use a ComboBox with entry. Thus,
we need to set the entry-text-column so the entry can
render the text.
libview/ev-view.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 4a2b7bf..56bf34e 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -2429,8 +2429,8 @@ ev_view_form_field_choice_create_widget (EvView *view,
} else if (field_choice->is_editable) { /* ComboBoxEntry */
gchar *text;
- /* FIXME once gtk bug 633050 is fixed */
- choice = g_object_new (GTK_TYPE_COMBO_BOX, "has-entry", TRUE, "model", model, NULL);
+ choice = gtk_combo_box_new_with_model_and_entry (model);
+ gtk_combo_box_set_entry_text_column (GTK_COMBO_BOX (choice), 0);
text = ev_document_forms_form_field_choice_get_text (EV_DOCUMENT_FORMS (view->document), field);
if (text) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]