From af91eb424ba614ed3712a0e2d0c1b8b6e80ddea6 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 24 Jun 2009 23:10:57 -0400 Subject: Get the "templates" plugin working again. --- plugins/templates/templates.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins/templates/templates.c') diff --git a/plugins/templates/templates.c b/plugins/templates/templates.c index 53669ba347..ae479fb41e 100644 --- a/plugins/templates/templates.c +++ b/plugins/templates/templates.c @@ -34,10 +34,10 @@ #include #include +#include #include #include #include -#include #include #include #include @@ -506,7 +506,7 @@ reply_with_template (EPopup *ep, EPopupItem *item, gpointer data) gchar *cont; /* We get the templates folder and all the uids of the messages in there */ - templates_folder = mail_component_get_folder(NULL, MAIL_COMPONENT_FOLDER_TEMPLATES); + templates_folder = e_mail_local_get_folder (E_MAIL_FOLDER_TEMPLATES); /* Get from the currently selected folder, the currently selected message */ reply_to = camel_folder_get_message (userdata->t->folder, @@ -666,14 +666,14 @@ org_gnome_templates_popup (EPlugin *ep, EMPopupTargetSelect *t) GSList *list = NULL; /* We get the templates folder and all the uids of the messages in there */ - store = mail_component_peek_local_store (NULL); + store = e_mail_local_get_store (); - templates_folder = mail_component_get_folder(NULL, MAIL_COMPONENT_FOLDER_TEMPLATES); + templates_folder = e_mail_local_get_folder (E_MAIL_FOLDER_TEMPLATES); - templates_info = camel_store_get_folder_info (store, - templates_folder->full_name, - CAMEL_STORE_FOLDER_INFO_RECURSIVE | CAMEL_STORE_FOLDER_INFO_FAST, - NULL); + templates_info = camel_store_get_folder_info ( + store, templates_folder->full_name, + CAMEL_STORE_FOLDER_INFO_RECURSIVE | + CAMEL_STORE_FOLDER_INFO_FAST, NULL); /* Get subfolders and fill it */ list = fill_submenu (store, templates_info, list, t); @@ -692,7 +692,7 @@ action_template_cb (GtkAction *action, CamelFolder *templates_folder; /* We get the templates folder and all the uids of the messages in there */ - templates_folder = mail_component_get_folder(NULL, MAIL_COMPONENT_FOLDER_TEMPLATES); + templates_folder = e_mail_local_get_folder (E_MAIL_FOLDER_TEMPLATES); msg = e_msg_composer_get_message_draft (composer); info = camel_message_info_new (NULL); -- cgit v1.2.3