Work to improve drafts handling, mainly from the UI pov. This, with
[modest] / src / widgets / modest-msg-edit-window.h
index b1fb3a0..4cb6e21 100644 (file)
@@ -346,6 +346,17 @@ gboolean        modest_msg_edit_window_get_sent            (ModestMsgEditWindow
 void            modest_msg_edit_window_set_sent            (ModestMsgEditWindow *window, 
                                                            gboolean sent);
 
+/**
+ * modest_msg_edit_window_set_draft:
+ * @window: a #ModestMsgEditWindow
+ * @draft: a #TnyMsg, or %NULL
+ *
+ * Set @draft as the original draft message of the editor. This
+ * message will be removed on saving or sending the message.
+ */
+void            modest_msg_edit_window_set_draft           (ModestMsgEditWindow *window,
+                                                           TnyMsg *draft);
+
 G_END_DECLS
 
 #endif /* __MODEST_MSG_EDIT_WINDOW_H__ */