diff options
author | JP Rosevear <jpr@ximian.com> | 2001-07-12 07:46:29 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-07-12 07:46:29 +0800 |
commit | e118c5cdbc09918fc648dd63d6f3c02cdcdfcdc2 (patch) | |
tree | d2fb72f21c797956d39dcae5e2be3134d694dec5 /mail | |
parent | b6b27d8a2a8f93fc99017e2bf6cf4bd6036d4f4d (diff) | |
download | gsoc2013-evolution-e118c5cdbc09918fc648dd63d6f3c02cdcdfcdc2.tar gsoc2013-evolution-e118c5cdbc09918fc648dd63d6f3c02cdcdfcdc2.tar.gz gsoc2013-evolution-e118c5cdbc09918fc648dd63d6f3c02cdcdfcdc2.tar.bz2 gsoc2013-evolution-e118c5cdbc09918fc648dd63d6f3c02cdcdfcdc2.tar.lz gsoc2013-evolution-e118c5cdbc09918fc648dd63d6f3c02cdcdfcdc2.tar.xz gsoc2013-evolution-e118c5cdbc09918fc648dd63d6f3c02cdcdfcdc2.tar.zst gsoc2013-evolution-e118c5cdbc09918fc648dd63d6f3c02cdcdfcdc2.zip |
no longer need to set a my address property
2001-07-11 JP Rosevear <jpr@ximian.com>
* mail-display.c (get_embedded_for_component): no longer need to
set a my address property
svn path=/trunk/; revision=11019
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-display.c | 27 |
2 files changed, 15 insertions, 17 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 1f7a598314..7e797c0873 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-07-11 JP Rosevear <jpr@ximian.com> + + * mail-display.c (get_embedded_for_component): no longer need to + set a my address property + 2001-07-10 Federico Mena Quintero <federico@ximian.com> * mail-display.c (link_copy_location): Set the CLIPBOARD diff --git a/mail/mail-display.c b/mail/mail-display.c index 5edc1242a5..a7fd33dc64 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -672,24 +672,17 @@ get_embedded_for_component (const char *iid, MailDisplay *md) * to pass a bunch of useful things to all embedded controls. */ const CamelInternetAddress *from; - const MailConfigIdentity *id; - - id = mail_config_get_default_identity (); + char *from_address; + CORBA_exception_init (&ev); - if (id){ - char *from_address; - - - from = camel_mime_message_get_from (md->current_message); - from_address = camel_address_encode((CamelAddress *)from); - bonobo_property_bag_client_set_value_string ( - prop_bag, "from_address", - from_address, &ev); - bonobo_property_bag_client_set_value_string ( - prop_bag, "my_address", - id ? id->address : "", &ev); - g_free(from_address); - } + + from = camel_mime_message_get_from (md->current_message); + from_address = camel_address_encode((CamelAddress *)from); + bonobo_property_bag_client_set_value_string ( + prop_bag, "from_address", + from_address, &ev); + g_free(from_address); + Bonobo_Unknown_unref (prop_bag, &ev); CORBA_exception_free (&ev); } |