can get the original msg.
/**
* modest_ui_actions_reply_calendar:
* @win: parent #ModestWindow
/**
* modest_ui_actions_reply_calendar:
* @win: parent #ModestWindow
- * @msg: original #TnyMsg
* @header_pairs: #TnyList of #TnyPair of header pairs
*
* this method opens the mail composer with a reply of a message with calendar
* allowing to add @header_pairs with the result of the calendar request.
* @header_pairs: #TnyList of #TnyPair of header pairs
*
* this method opens the mail composer with a reply of a message with calendar
* allowing to add @header_pairs with the result of the calendar request.
+ *
+ * @win should be a #ModestMsgViewWindow. We don't put the exact type to avoid
+ * exporting to plugins #ModestMsgViewWindow API
-modest_ui_actions_reply_calendar (ModestWindow *win, TnyMsg *msg, TnyList *header_pairs);
+modest_ui_actions_reply_calendar (ModestWindow *win, TnyList *header_pairs);
-modest_ui_actions_reply_calendar (ModestWindow *win, TnyMsg *msg, TnyList *header_pairs)
+modest_ui_actions_reply_calendar (ModestWindow *win, TnyList *header_pairs)
{
gchar *from;
gchar *recipient;
{
gchar *from;
gchar *recipient;
const gchar *mailbox;
TnyHeader *msg_header;
ModestWindowMgr *mgr;
const gchar *mailbox;
TnyHeader *msg_header;
ModestWindowMgr *mgr;
g_return_if_fail (MODEST_IS_MSG_VIEW_WINDOW(win));
g_return_if_fail (MODEST_IS_MSG_VIEW_WINDOW(win));
&use_signature);
g_free (recipient);
&use_signature);
g_free (recipient);
+ msg = modest_msg_view_window_get_message(MODEST_MSG_VIEW_WINDOW(win));
+ g_return_if_fail(msg);
+
msg_header = tny_msg_get_header (msg);
new_msg =
modest_tny_msg_create_reply_calendar_msg (msg, msg_header, from,
msg_header = tny_msg_get_header (msg);
new_msg =
modest_tny_msg_create_reply_calendar_msg (msg, msg_header, from,