diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-04-13 22:31:31 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-06-03 11:00:40 +0800 |
commit | f78795f4dff8b225d78385c5e23e1cd44ee946ad (patch) | |
tree | a35151efbda32b3fbc0b352b86dd1c7089d84240 /composer/e-composer-spell-header.c | |
parent | 68c35c4bedc4cd36cf2396121921f2e781b631fb (diff) | |
download | gsoc2013-evolution-f78795f4dff8b225d78385c5e23e1cd44ee946ad.tar.gz gsoc2013-evolution-f78795f4dff8b225d78385c5e23e1cd44ee946ad.tar.zst gsoc2013-evolution-f78795f4dff8b225d78385c5e23e1cd44ee946ad.zip |
Adapt composer to the new ESource API.
Diffstat (limited to 'composer/e-composer-spell-header.c')
-rw-r--r-- | composer/e-composer-spell-header.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/composer/e-composer-spell-header.c b/composer/e-composer-spell-header.c index aff5dbfd2b..ad4ddca6dd 100644 --- a/composer/e-composer-spell-header.c +++ b/composer/e-composer-spell-header.c @@ -43,32 +43,38 @@ e_composer_spell_header_init (EComposerSpellHeader *header) } EComposerHeader * -e_composer_spell_header_new_label (const gchar *label) +e_composer_spell_header_new_label (ESourceRegistry *registry, + const gchar *label) { + g_return_val_if_fail (E_IS_SOURCE_REGISTRY (registry), NULL); + return g_object_new ( E_TYPE_COMPOSER_SPELL_HEADER, "label", label, "button", FALSE, - NULL); + "registry", registry, NULL); } EComposerHeader * -e_composer_spell_header_new_button (const gchar *label) +e_composer_spell_header_new_button (ESourceRegistry *registry, + const gchar *label) { + g_return_val_if_fail (E_IS_SOURCE_REGISTRY (registry), NULL); + return g_object_new ( E_TYPE_COMPOSER_SPELL_HEADER, "label", label, "button", TRUE, - NULL); + "registry", registry, NULL); } void -e_composer_spell_header_set_languages (EComposerSpellHeader *spell_header, +e_composer_spell_header_set_languages (EComposerSpellHeader *header, GList *languages) { ESpellEntry *spell_entry; - g_return_if_fail (spell_header != NULL); + g_return_if_fail (header != NULL); - spell_entry = E_SPELL_ENTRY (E_COMPOSER_HEADER (spell_header)->input_widget); + spell_entry = E_SPELL_ENTRY (E_COMPOSER_HEADER (header)->input_widget); g_return_if_fail (spell_entry != NULL); e_spell_entry_set_languages (spell_entry, languages); |