[evolution/wip/camel-more-gobject] Seal CamelAddress properties
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/camel-more-gobject] Seal CamelAddress properties
- Date: Wed, 2 Nov 2016 16:09:02 +0000 (UTC)
commit a222f4b0e6d851c6722a75e522f08cf2b59cffaf
Author: Milan Crha <mcrha redhat com>
Date: Wed Nov 2 17:09:08 2016 +0100
Seal CamelAddress properties
src/composer/e-msg-composer.c | 6 +++---
src/plugins/mail-to-task/mail-to-task.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/composer/e-msg-composer.c b/src/composer/e-msg-composer.c
index 84fe5a5..a5b6eff 100644
--- a/src/composer/e-msg-composer.c
+++ b/src/composer/e-msg-composer.c
@@ -3628,7 +3628,7 @@ e_msg_composer_setup_with_message (EMsgComposer *composer,
cc = camel_mime_message_get_recipients (message, CAMEL_RECIPIENT_TYPE_CC);
bcc = camel_mime_message_get_recipients (message, CAMEL_RECIPIENT_TYPE_BCC);
- len = CAMEL_ADDRESS (to)->addresses->len;
+ len = camel_address_length (CAMEL_ADDRESS (to));
for (i = 0; i < len; i++) {
const gchar *name, *addr;
@@ -3643,7 +3643,7 @@ e_msg_composer_setup_with_message (EMsgComposer *composer,
Tov = destination_list_to_vector (To);
g_list_free (To);
- len = CAMEL_ADDRESS (cc)->addresses->len;
+ len = camel_address_length (CAMEL_ADDRESS (cc));
for (i = 0; i < len; i++) {
const gchar *name, *addr;
@@ -3663,7 +3663,7 @@ e_msg_composer_setup_with_message (EMsgComposer *composer,
g_hash_table_destroy (auto_cc);
g_list_free (Cc);
- len = CAMEL_ADDRESS (bcc)->addresses->len;
+ len = camel_address_length (CAMEL_ADDRESS (bcc));
for (i = 0; i < len; i++) {
const gchar *name, *addr;
diff --git a/src/plugins/mail-to-task/mail-to-task.c b/src/plugins/mail-to-task/mail-to-task.c
index 527698c..6d6e428 100644
--- a/src/plugins/mail-to-task/mail-to-task.c
+++ b/src/plugins/mail-to-task/mail-to-task.c
@@ -124,7 +124,7 @@ set_attendees (ECalComponent *comp,
if (!arr[j])
continue;
- len = CAMEL_ADDRESS (arr[j])->addresses->len;
+ len = camel_address_length (CAMEL_ADDRESS (arr[j]));
for (i = 0; i < len; i++) {
const gchar *name, *addr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]