aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2001-01-09 04:44:58 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-09 04:44:58 +0800
commit6054c6897b77256c6a021280c123657429c02757 (patch)
treea3e42b5cc97732562d883b92d5d051736ea394e4
parentdeb9cf435980c48539c5612ebf1533b6f853608c (diff)
downloadgsoc2013-evolution-6054c6897b77256c6a021280c123657429c02757.tar
gsoc2013-evolution-6054c6897b77256c6a021280c123657429c02757.tar.gz
gsoc2013-evolution-6054c6897b77256c6a021280c123657429c02757.tar.bz2
gsoc2013-evolution-6054c6897b77256c6a021280c123657429c02757.tar.lz
gsoc2013-evolution-6054c6897b77256c6a021280c123657429c02757.tar.xz
gsoc2013-evolution-6054c6897b77256c6a021280c123657429c02757.tar.zst
gsoc2013-evolution-6054c6897b77256c6a021280c123657429c02757.zip
Reverted back to old config code temporarily until I get the new config
2001-01-08 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer-hdrs.c (create_dropdown_entry): Reverted back to old config code temporarily until I get the new config code working 100%. svn path=/trunk/; revision=7304
-rw-r--r--composer/ChangeLog6
-rw-r--r--composer/e-msg-composer-hdrs.c24
2 files changed, 17 insertions, 13 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 2b3736d1ab..50da647f23 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,9 @@
+2001-01-08 Jeffrey Stedfast <fejj@helixcode.com>
+
+ * e-msg-composer-hdrs.c (create_dropdown_entry): Reverted back to
+ old config code temporarily until I get the new config code
+ working 100%.
+
2001-01-07 Jeffrey Stedfast <fejj@helixcode.com>
* e-msg-composer-hdrs.c (create_dropdown_entry): Updated to
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c
index 35727e7da3..edd8ff6803 100644
--- a/composer/e-msg-composer-hdrs.c
+++ b/composer/e-msg-composer-hdrs.c
@@ -135,24 +135,22 @@ create_dropdown_entry (EMsgComposerHdrs *hdrs,
gtk_combo_set_use_arrows (GTK_COMBO (combo), TRUE);
gtk_combo_set_case_sensitive (GTK_COMBO (combo), FALSE);
if (!strcmp (name, _("From:"))) {
- const MailConfigIdentity *id;
- const GSList *accounts, *stmp;
+ GSList *ids, *stmp;
GList *tmp;
+ MailConfigIdentity *id;
char *val;
- accounts = mail_config_get_accounts ();
- stmp = accounts;
+ ids = mail_config_get_identities ();
+ stmp = ids;
while (stmp) {
- const MailConfigAccount *account;
char *address, *addr_local;
- account = stmp->data;
- g_assert (account);
- g_assert (account->id);
- g_assert (account->id->name);
- g_assert (account->id->address);
+ id = stmp->data;
+ g_assert (id);
+ g_assert (id->name);
+ g_assert (id->address);
- address = camel_internet_address_format_address (account->id->name, account->id->address);
+ address = camel_internet_address_format_address(id->name, id->address);
addr_local = e_utf8_to_gtk_string (combo, address);
g_free (address);
values = g_list_append (values, addr_local);
@@ -167,13 +165,13 @@ create_dropdown_entry (EMsgComposerHdrs *hdrs,
tmp = tmp->next;
}
g_list_free (values);
-
+
id = mail_config_get_default_identity ();
g_assert (id);
g_assert (id->name);
g_assert (id->address);
- val = camel_internet_address_format_address (id->name, id->address);
+ val = camel_internet_address_format_address(id->name, id->address);
e_utf8_gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (combo)->entry), val);
g_free (val);