aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-06-25 11:10:57 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-06-25 11:10:57 +0800
commitaf91eb424ba614ed3712a0e2d0c1b8b6e80ddea6 (patch)
treea4bf92cfb773de592534a093dff81960fe92bae0 /plugins
parent79e6d5efc32f1cfa33beeff58174bc710ffa67e4 (diff)
downloadgsoc2013-evolution-af91eb424ba614ed3712a0e2d0c1b8b6e80ddea6.tar.gz
gsoc2013-evolution-af91eb424ba614ed3712a0e2d0c1b8b6e80ddea6.tar.zst
gsoc2013-evolution-af91eb424ba614ed3712a0e2d0c1b8b6e80ddea6.zip
Get the "templates" plugin working again.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/templates/templates.c18
1 files changed, 9 insertions, 9 deletions
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 <camel/camel-multipart.h>
#include <camel/camel-stream-mem.h>
+#include <mail/e-mail-local.h>
#include <mail/em-composer-utils.h>
#include <mail/em-popup.h>
#include <mail/mail-session.h>
-#include <mail/mail-component.h>
#include <mail/mail-ops.h>
#include <e-util/e-error.h>
#include <e-util/e-plugin.h>
@@ -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);