aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-composer-name-header.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-17 05:19:51 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-21 10:52:36 +0800
commit5893a146f20f364042410aa7d8cd45f8194ae745 (patch)
tree2c5a1b8e36f2a6c7ec024f944baf8aed3f707fa8 /composer/e-composer-name-header.c
parentee4f68726e2ca4cffd5e63ec5bdad62aff4147d3 (diff)
downloadgsoc2013-evolution-5893a146f20f364042410aa7d8cd45f8194ae745.tar
gsoc2013-evolution-5893a146f20f364042410aa7d8cd45f8194ae745.tar.gz
gsoc2013-evolution-5893a146f20f364042410aa7d8cd45f8194ae745.tar.bz2
gsoc2013-evolution-5893a146f20f364042410aa7d8cd45f8194ae745.tar.lz
gsoc2013-evolution-5893a146f20f364042410aa7d8cd45f8194ae745.tar.xz
gsoc2013-evolution-5893a146f20f364042410aa7d8cd45f8194ae745.tar.zst
gsoc2013-evolution-5893a146f20f364042410aa7d8cd45f8194ae745.zip
Bug 582744 – CC field autofill doesn't work for replies
Diffstat (limited to 'composer/e-composer-name-header.c')
-rw-r--r--composer/e-composer-name-header.c29
1 files changed, 22 insertions, 7 deletions
diff --git a/composer/e-composer-name-header.c b/composer/e-composer-name-header.c
index 1b5acc19d5..a6618fdb4a 100644
--- a/composer/e-composer-name-header.c
+++ b/composer/e-composer-name-header.c
@@ -298,13 +298,33 @@ e_composer_name_header_get_destinations (EComposerNameHeader *header)
}
void
+e_composer_name_header_add_destinations (EComposerNameHeader *header,
+ EDestination **destinations)
+{
+ EDestinationStore *store;
+ ENameSelectorEntry *entry;
+ gint ii;
+
+ g_return_if_fail (E_IS_COMPOSER_NAME_HEADER (header));
+
+ entry = E_COMPOSER_NAME_HEADER_GET_ENTRY (header);
+ store = e_name_selector_entry_peek_destination_store (entry);
+
+ if (destinations == NULL)
+ return;
+
+ for (ii = 0; destinations[ii] != NULL; ii++)
+ e_destination_store_append_destination (
+ store, destinations[ii]);
+}
+
+void
e_composer_name_header_set_destinations (EComposerNameHeader *header,
EDestination **destinations)
{
EDestinationStore *store;
ENameSelectorEntry *entry;
GList *list, *iter;
- gint ii;
g_return_if_fail (E_IS_COMPOSER_NAME_HEADER (header));
@@ -317,10 +337,5 @@ e_composer_name_header_set_destinations (EComposerNameHeader *header,
e_destination_store_remove_destination (store, iter->data);
g_list_free (list);
- if (destinations == NULL)
- return;
-
- for (ii = 0; destinations[ii] != NULL; ii++)
- e_destination_store_append_destination (
- store, destinations[ii]);
+ e_composer_name_header_add_destinations (header, destinations);
}