[evolution/wip/webkit-composer] EEditorWidget: Return wrapped body in e_editor_widget_quote_plain_text
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer] EEditorWidget: Return wrapped body in e_editor_widget_quote_plain_text
- Date: Wed, 26 Feb 2014 12:09:38 +0000 (UTC)
commit 132a6c026ec71ae48e010982cd85da3e059e5d55
Author: Tomas Popela <tpopela redhat com>
Date: Wed Feb 26 13:08:55 2014 +0100
EEditorWidget: Return wrapped body in e_editor_widget_quote_plain_text
e-util/e-editor-widget.c | 8 +++++---
e-util/e-editor-widget.h | 3 ++-
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index 850f550..fb96a9f 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/e-editor-widget.c
@@ -3051,7 +3051,7 @@ e_editor_widget_quote_plain_text_element (EEditorWidget *widget,
* As this function is cloning and replacing all citation blockquotes keep on
* mind that any pointers to nodes inside these blockquotes will be invalidated.
*/
-void
+WebKitDOMElement *
e_editor_widget_quote_plain_text (EEditorWidget *widget)
{
WebKitDOMDocument *document;
@@ -3132,6 +3132,8 @@ e_editor_widget_quote_plain_text (EEditorWidget *widget)
body_clone,
WEBKIT_DOM_NODE (body),
NULL);
+
+ return WEBKIT_DOM_ELEMENT (body_clone);
}
/**
@@ -3843,7 +3845,6 @@ convert_when_changing_composer_mode (EEditorWidget *widget)
document),
NULL);
}
-
from = WEBKIT_DOM_NODE (blockquote);
} else {
if (signature) {
@@ -3929,7 +3930,8 @@ convert_when_changing_composer_mode (EEditorWidget *widget)
}
if (blockquote || webkit_dom_node_list_get_length (blockquotes) > 0)
- e_editor_widget_quote_plain_text (widget);
+ body = WEBKIT_DOM_HTML_ELEMENT (
+ e_editor_widget_quote_plain_text (widget));
webkit_dom_element_set_attribute (
WEBKIT_DOM_ELEMENT (body), "data-converted", "", NULL);
diff --git a/e-util/e-editor-widget.h b/e-util/e-editor-widget.h
index 23b38cd..7a53608 100644
--- a/e-util/e-editor-widget.h
+++ b/e-util/e-editor-widget.h
@@ -127,7 +127,8 @@ WebKitDOMElement *
e_editor_widget_quote_plain_text_element
(EEditorWidget *widget,
WebKitDOMElement *element);
-void e_editor_widget_quote_plain_text
+WebKitDOMElement *
+ e_editor_widget_quote_plain_text
(EEditorWidget *widget);
void e_editor_widget_dequote_plain_text
(EEditorWidget *widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]