Move modest_ui_actions_on_send_msg to plugin API.
authorJosé Dapena Paz <jdapena@igalia.com>
Thu, 28 Jan 2010 15:53:03 +0000 (16:53 +0100)
committerJosé Dapena Paz <jdapena@igalia.com>
Thu, 28 Jan 2010 16:16:48 +0000 (17:16 +0100)
src/modest-plugin-ui-actions.h
src/modest-ui-actions.h

index 1f8f457..e73365c 100644 (file)
@@ -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);
 
 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__ */
 
 G_END_DECLS
 #endif /* __MODEST_PLUGIN_UI_ACTIONS_H__ */
index 88ac0f0..8284cff 100644 (file)
@@ -183,9 +183,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);
 
 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, 
 gboolean modest_ui_actions_on_send                     (GtkWidget *widget,
                                                        ModestMsgEditWindow *edit_window);
 gboolean modest_ui_actions_on_save_to_drafts           (GtkWidget *widget,