aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-13 12:07:42 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-13 12:07:42 +0800
commit0177724596c1cfb2cadea4ccf8d96f9101b32c02 (patch)
tree71ee9b15acc921f9628cc98108e4f4ee40ee520c /plugins
parentb62c18bd6b91a9f7f71b018f82441bb30cc5fc57 (diff)
downloadgsoc2013-evolution-0177724596c1cfb2cadea4ccf8d96f9101b32c02.tar.gz
gsoc2013-evolution-0177724596c1cfb2cadea4ccf8d96f9101b32c02.tar.zst
gsoc2013-evolution-0177724596c1cfb2cadea4ccf8d96f9101b32c02.zip
Fix crashes in mail-to-task plugin.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mail-to-task/mail-to-task.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c
index cef866589d..406aae642f 100644
--- a/plugins/mail-to-task/mail-to-task.c
+++ b/plugins/mail-to-task/mail-to-task.c
@@ -819,10 +819,8 @@ get_selected_text (EMailReader *reader)
static void
mail_to_event (ECalSourceType source_type,
gboolean with_attendees,
- EShellView *shell_view)
+ EMailReader *reader)
{
- EShellContent *shell_content;
- EMailReader *reader;
MessageList *message_list;
CamelFolder *folder;
GPtrArray *selected;
@@ -832,9 +830,6 @@ mail_to_event (ECalSourceType source_type,
ESource *source = NULL;
GError *error = NULL;
- shell_content = e_shell_view_get_shell_content (shell_view);
-
- reader = E_MAIL_READER (shell_content);
message_list = e_mail_reader_get_message_list (reader);
selected = message_list_get_selected (message_list);
folder = message_list->folder;
@@ -925,30 +920,30 @@ mail_to_event (ECalSourceType source_type,
static void
action_mail_convert_to_event_cb (GtkAction *action,
- EShellView *shell_view)
+ EMailReader *reader)
{
- mail_to_event (E_CAL_SOURCE_TYPE_EVENT, FALSE, shell_view);
+ mail_to_event (E_CAL_SOURCE_TYPE_EVENT, FALSE, reader);
}
static void
action_mail_convert_to_meeting_cb (GtkAction *action,
- EShellView *shell_view)
+ EMailReader *reader)
{
- mail_to_event (E_CAL_SOURCE_TYPE_EVENT, TRUE, shell_view);
+ mail_to_event (E_CAL_SOURCE_TYPE_EVENT, TRUE, reader);
}
static void
action_mail_convert_to_memo_cb (GtkAction *action,
- EShellView *shell_view)
+ EMailReader *reader)
{
- mail_to_event (E_CAL_SOURCE_TYPE_JOURNAL, FALSE, shell_view);
+ mail_to_event (E_CAL_SOURCE_TYPE_JOURNAL, FALSE, reader);
}
static void
action_mail_convert_to_task_cb (GtkAction *action,
- EShellView *shell_view)
+ EMailReader *reader)
{
- mail_to_event (E_CAL_SOURCE_TYPE_TODO, FALSE, shell_view);
+ mail_to_event (E_CAL_SOURCE_TYPE_TODO, FALSE, reader);
}
/* Note, we're not using EPopupActions here because we update the state