[evolution/express] Bug #610663 - Message receipts combo box is empty



commit dbe8c751123c7f096a728434858b1c84923aed60
Author: Milan Crha <mcrha redhat com>
Date:   Wed Feb 24 18:39:26 2010 +0100

    Bug #610663 - Message receipts combo box is empty

 mail/em-account-editor.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index fed6ec9..fe876b2 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]