[evolution] EHTMLEditorView - Minor code and style changes
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Minor code and style changes
- Date: Thu, 30 Apr 2015 06:55:29 +0000 (UTC)
commit 7ec64535431ca3fc0b0c26ffaca91cce442bbbd7
Author: Tomas Popela <tpopela redhat com>
Date: Thu Apr 30 08:51:40 2015 +0200
EHTMLEditorView - Minor code and style changes
Remove unneeded variable check and indent correctly one function call.
e-util/e-html-editor-view.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 9f368f2..7302dc4 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -701,7 +701,7 @@ refresh_spell_check (EHTMLEditorView *view,
WebKitDOMNode *child;
child = webkit_dom_node_get_first_child (WEBKIT_DOM_NODE (body));
- if (!child || !WEBKIT_DOM_IS_HTML_ELEMENT (child))
+ if (!WEBKIT_DOM_IS_HTML_ELEMENT (child))
return;
add_selection_markers_into_element_start (
@@ -1411,7 +1411,11 @@ repair_gmail_blockquotes (WebKitDOMDocument *document)
if (!WEBKIT_DOM_IS_HTMLBR_ELEMENT (webkit_dom_node_get_last_child (node)))
webkit_dom_node_append_child (
- node, WEBKIT_DOM_NODE (webkit_dom_document_create_element (document, "br",
NULL)), NULL);
+ node,
+ WEBKIT_DOM_NODE (
+ webkit_dom_document_create_element (
+ document, "br", NULL)),
+ NULL);
g_object_unref (node);
}
g_object_unref (list);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]