From 4033abb7c55a5515534cfee1b2be141428fac6ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Dapena=20Paz?= Date: Thu, 28 Jan 2010 16:53:03 +0100 Subject: [PATCH] Move modest_ui_actions_on_send_msg to plugin API. --- src/modest-plugin-ui-actions.h | 13 +++++++++++++ src/modest-ui-actions.h | 3 --- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/modest-plugin-ui-actions.h b/src/modest-plugin-ui-actions.h index 01fc21b..0398cde 100644 --- a/src/modest-plugin-ui-actions.h +++ b/src/modest-plugin-ui-actions.h @@ -79,6 +79,19 @@ modest_ui_actions_on_reload_message (const gchar *msg_id); void modest_ui_actions_reply_calendar (ModestWindow *win, TnyList *header_pairs); +/** + * modest_ui_actions_on_send_msg: + * @window: parent window requesting to send the message + * @msg: a #TnyMsg + * + * This method will send @msg without showing the message editor. + * + * Returns: %TRUE if succesful, %FALSE otherwise + */ +gboolean +modest_ui_actions_on_send_msg (ModestWindow *window, + TnyMsg *msg); + G_END_DECLS #endif /* __MODEST_PLUGIN_UI_ACTIONS_H__ */ diff --git a/src/modest-ui-actions.h b/src/modest-ui-actions.h index 0303480..65d8417 100644 --- a/src/modest-ui-actions.h +++ b/src/modest-ui-actions.h @@ -176,9 +176,6 @@ void modest_ui_actions_on_msg_attachment_clicked (ModestMsgView *msgview, void modest_ui_actions_on_msg_recpt_activated (ModestMsgView *msgview, const gchar *address, ModestWindow *win); -gboolean modest_ui_actions_on_send_msg (ModestWindow *window, - TnyMsg *msg); - gboolean modest_ui_actions_on_send (GtkWidget *widget, ModestMsgEditWindow *edit_window); gboolean modest_ui_actions_on_save_to_drafts (GtkWidget *widget, -- 1.7.9.5