[evolution/wip/webkit-composer: 869/966] Bug 725731 - [webkit-composer] Changed message lost on Esc press
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 869/966] Bug 725731 - [webkit-composer] Changed message lost on Esc press
- Date: Wed, 23 Apr 2014 11:06:29 +0000 (UTC)
commit 371fc7823155e93fb16eee28a10ee8788ab8e828
Author: Tomas Popela <tpopela redhat com>
Date: Thu Mar 6 13:48:03 2014 +0100
Bug 725731 - [webkit-composer] Changed message lost on Esc press
e-util/e-editor-widget.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index 349fbd0..4b84fc6 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/e-editor-widget.c
@@ -314,6 +314,8 @@ body_input_event_cb (WebKitDOMElement *element,
WebKitDOMNode *node, *parent;
WebKitDOMRange *range = editor_widget_get_dom_range (editor_widget);
+ e_editor_widget_set_changed (editor_widget, TRUE);
+
/* If text before caret includes UNICODE_ZERO_WIDTH_SPACE character, remove it */
node = webkit_dom_range_get_end_container (range, NULL);
if (WEBKIT_DOM_IS_TEXT (node)) {
@@ -1594,8 +1596,6 @@ editor_widget_key_press_event (GtkWidget *widget,
{
EEditorWidget *editor = E_EDITOR_WIDGET (widget);
- editor->priv->changed = FALSE;
-
if (event->keyval == GDK_KEY_Tab)
return e_editor_widget_exec_command (
editor,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]