[evolution] EHTMLEditorView - Editor is not marked as changed on some operations
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Editor is not marked as changed on some operations
- Date: Wed, 12 Aug 2015 12:44:48 +0000 (UTC)
commit 9f2e83538ce931af993e0413111d300e6c7208aa
Author: Tomas Popela <tpopela redhat com>
Date: Wed Aug 12 14:42:13 2015 +0200
EHTMLEditorView - Editor is not marked as changed on some operations
e-util/e-html-editor-view.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 4d18953..ef7cabd 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -4805,6 +4805,7 @@ insert_tabulator (EHTMLEditorView *view)
ev->data.fragment = fragment;
e_html_editor_view_insert_new_history_event (view, ev);
+ e_html_editor_view_set_changed (view, TRUE);
} else {
remove_history_event (view, view->priv->history);
remove_history_event (view, view->priv->history);
@@ -4970,6 +4971,7 @@ html_editor_view_key_press_event (GtkWidget *widget,
table,
NULL);
e_html_editor_selection_restore (selection);
+ e_html_editor_view_set_changed (view, TRUE);
return TRUE;
}
}
@@ -4979,7 +4981,11 @@ html_editor_view_key_press_event (GtkWidget *widget,
* the special command to do it. */
if (e_html_editor_selection_is_citation (selection)) {
remove_input_event_listener_from_body (view);
- return split_citation (view);
+ if (split_citation (view)) {
+ e_html_editor_view_set_changed (view, TRUE);
+ return TRUE;
+ }
+ return FALSE;
}
/* If the ENTER key is pressed inside an empty list item then the list
@@ -5000,6 +5006,7 @@ html_editor_view_key_press_event (GtkWidget *widget,
if (change_quoted_block_to_normal (view)) {
e_html_editor_selection_restore (selection);
e_html_editor_view_force_spell_check_for_current_paragraph (view);
+ e_html_editor_view_set_changed (view, TRUE);
return TRUE;
}
e_html_editor_selection_restore (selection);
@@ -5028,6 +5035,7 @@ html_editor_view_key_press_event (GtkWidget *widget,
e_html_editor_selection_restore (selection);
if (!prev_sibling) {
e_html_editor_selection_unindent (selection);
+ e_html_editor_view_set_changed (view, TRUE);
return TRUE;
}
}
@@ -5076,8 +5084,10 @@ html_editor_view_key_press_event (GtkWidget *widget,
e_html_editor_selection_restore (view->priv->selection);
}
if (event->keyval == GDK_KEY_BackSpace && !view->priv->html_mode) {
- if (delete_character_from_quoted_line_start (view, event))
+ if (delete_character_from_quoted_line_start (view, event)) {
+ e_html_editor_view_set_changed (view, TRUE);
return TRUE;
+ }
}
if (fix_structure_after_delete_before_quoted_content (view, event))
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]