aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-account-editor.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-02-25 01:39:26 +0800
committerMilan Crha <mcrha@redhat.com>2010-02-25 01:39:26 +0800
commit0ff27bdb091f11ac314ff6d84bd0188d1341ffae (patch)
treed5304870337daefb4a4e4f8472ae7f04a0887b7d /mail/em-account-editor.c
parente3d64cd4276e2696791f23f8fe705d09e6a83e14 (diff)
downloadgsoc2013-evolution-0ff27bdb091f11ac314ff6d84bd0188d1341ffae.tar
gsoc2013-evolution-0ff27bdb091f11ac314ff6d84bd0188d1341ffae.tar.gz
gsoc2013-evolution-0ff27bdb091f11ac314ff6d84bd0188d1341ffae.tar.bz2
gsoc2013-evolution-0ff27bdb091f11ac314ff6d84bd0188d1341ffae.tar.lz
gsoc2013-evolution-0ff27bdb091f11ac314ff6d84bd0188d1341ffae.tar.xz
gsoc2013-evolution-0ff27bdb091f11ac314ff6d84bd0188d1341ffae.tar.zst
gsoc2013-evolution-0ff27bdb091f11ac314ff6d84bd0188d1341ffae.zip
Bug #610663 - Message receipts combo box is empty
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r--mail/em-account-editor.c6
1 files changed, 6 insertions, 0 deletions
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);