aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-04-20 01:35:34 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-04-20 01:36:13 +0800
commit1ff91f837a1508d7c3f327a3fc796534411270c2 (patch)
treec50463501e993d0ee5c903784a19a17492e361e4 /composer
parent3bdad9ecb7ebf5020fe443fec1f1440e0afeb930 (diff)
downloadgsoc2013-evolution-1ff91f837a1508d7c3f327a3fc796534411270c2.tar.gz
gsoc2013-evolution-1ff91f837a1508d7c3f327a3fc796534411270c2.tar.zst
gsoc2013-evolution-1ff91f837a1508d7c3f327a3fc796534411270c2.zip
Adapt to libedataserverui API changes.
Diffstat (limited to 'composer')
-rw-r--r--composer/e-composer-name-header.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/composer/e-composer-name-header.c b/composer/e-composer-name-header.c
index 658e7cc292..eadef10910 100644
--- a/composer/e-composer-name-header.c
+++ b/composer/e-composer-name-header.c
@@ -112,6 +112,7 @@ composer_name_header_constructor (GType type,
ENameSelectorModel *model;
ENameSelectorEntry *entry;
GObject *object;
+ GList *sections;
gchar *label;
/* Chain up to parent's constructor() method. */
@@ -125,9 +126,11 @@ composer_name_header_constructor (GType type,
label = e_composer_header_get_label (E_COMPOSER_HEADER (object));
g_assert (label != NULL);
- /* XXX Peeking at private data. */
- priv->destination_index = model->sections->len;
+ sections = e_name_selector_model_list_sections (model);
+ priv->destination_index = g_list_length (sections);
e_name_selector_model_add_section (model, label, label, NULL);
+ g_list_foreach (sections, (GFunc) g_free, NULL);
+ g_list_free (sections);
e_composer_header_set_title_tooltip (
E_COMPOSER_HEADER (object),