static gboolean msg_body_focus (GtkWidget *focus, GdkEventFocus *event, gpointer userdata);
static void body_changed (GtkTextBuffer *buffer, ModestMsgEditWindow *editor);
static void recpt_field_changed (GtkTextBuffer *buffer, ModestMsgEditWindow *editor);
-static void reset_modified (ModestMsgEditWindow *editor);
static void text_buffer_refresh_attributes (WPTextBuffer *buffer, ModestMsgEditWindow *window);
static void text_buffer_can_undo (GtkTextBuffer *buffer, gboolean can_undo, ModestMsgEditWindow *window);
gtk_text_buffer_get_start_iter (priv->text_buffer, &iter);
gtk_text_buffer_place_cursor (priv->text_buffer, &iter);
- reset_modified (self);
+ modest_msg_edit_window_reset_modified (self);
modest_ui_actions_check_toolbar_dimming_rules (MODEST_WINDOW (self));
text_buffer_can_undo (priv->text_buffer, FALSE, self);
modest_window_check_dimming_rules_group (MODEST_WINDOW (obj), "ModestClipboardDimmingRules");
priv->update_caption_visibility = TRUE;
- reset_modified (MODEST_MSG_EDIT_WINDOW (obj));
+ modest_msg_edit_window_reset_modified (MODEST_MSG_EDIT_WINDOW (obj));
return (ModestWindow*) obj;
}
modest_ui_actions_check_toolbar_dimming_rules (MODEST_WINDOW (editor));
}
-static void
-reset_modified (ModestMsgEditWindow *editor)
+void
+modest_msg_edit_window_reset_modified (ModestMsgEditWindow *editor)
{
ModestMsgEditWindowPrivate *priv = MODEST_MSG_EDIT_WINDOW_GET_PRIVATE (editor);
GtkTextBuffer *buffer;
*/
gboolean modest_msg_edit_window_is_modified (ModestMsgEditWindow *window);
+/**
+ * modest_msg_edit_window_reset_modified:
+ * @window: a #ModestMsgEditWindow
+ *
+ * Resets the message as not modified
+ */
+void modest_msg_edit_window_reset_modified (ModestMsgEditWindow *window);
+
gboolean modest_msg_edit_window_get_sent (ModestMsgEditWindow *window);
void modest_msg_edit_window_set_sent (ModestMsgEditWindow *window,
gboolean sent);