From 0ff27bdb091f11ac314ff6d84bd0188d1341ffae Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 24 Feb 2010 18:39:26 +0100 Subject: Bug #610663 - Message receipts combo box is empty --- mail/em-account-editor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index fed6ec9ca8..fe876b2563 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -955,6 +955,7 @@ emae_setup_receipt_policy (EMAccountEditor *emae, GtkBuilder *builder) EAccount *account; GtkComboBox *dropdown = (GtkComboBox *)e_builder_get_widget (builder, "receipt_policy_dropdown"); GtkListStore *store; + GtkCellRenderer *cell; gint i = 0, active = 0; GtkTreeIter iter; EAccountReceiptPolicy current; @@ -985,6 +986,11 @@ emae_setup_receipt_policy (EMAccountEditor *emae, GtkBuilder *builder) } gtk_combo_box_set_model (dropdown, (GtkTreeModel *)store); + + cell = gtk_cell_renderer_text_new (); + gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (dropdown), cell, TRUE); + gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (dropdown), cell, "text", 0, NULL); + gtk_combo_box_set_active (dropdown, active); g_signal_connect (dropdown, "changed", G_CALLBACK(emae_receipt_policy_changed), emae); -- cgit v1.2.3