aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-html-editor-selection.c
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2014-09-12 15:55:52 +0800
committerTomas Popela <tpopela@redhat.com>2014-09-12 16:23:26 +0800
commitfd226bf07d20e124a3e498f1b0776a5341aa93ce (patch)
treec4902ea8f3e5ad1a7de773365545e3c7f747477f /e-util/e-html-editor-selection.c
parente574751387406936204f7c146401b0576f3412c6 (diff)
downloadgsoc2013-evolution-fd226bf07d20e124a3e498f1b0776a5341aa93ce.tar
gsoc2013-evolution-fd226bf07d20e124a3e498f1b0776a5341aa93ce.tar.gz
gsoc2013-evolution-fd226bf07d20e124a3e498f1b0776a5341aa93ce.tar.bz2
gsoc2013-evolution-fd226bf07d20e124a3e498f1b0776a5341aa93ce.tar.lz
gsoc2013-evolution-fd226bf07d20e124a3e498f1b0776a5341aa93ce.tar.xz
gsoc2013-evolution-fd226bf07d20e124a3e498f1b0776a5341aa93ce.tar.zst
gsoc2013-evolution-fd226bf07d20e124a3e498f1b0776a5341aa93ce.zip
Replace the webkit_dom_node_get_node_type function with equivalent macros
Diffstat (limited to 'e-util/e-html-editor-selection.c')
-rw-r--r--e-util/e-html-editor-selection.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 08bcd62040..de3e43174c 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -894,16 +894,16 @@ e_html_editor_selection_has_text (EHTMLEditorSelection *selection)
range = html_editor_selection_get_current_range (selection);
node = webkit_dom_range_get_start_container (range, NULL);
- if (webkit_dom_node_get_node_type (node) == 3)
+ if (WEBKIT_DOM_IS_TEXT (node))
return TRUE;
node = webkit_dom_range_get_end_container (range, NULL);
- if (webkit_dom_node_get_node_type (node) == 3)
+ if (WEBKIT_DOM_IS_TEXT (node))
return TRUE;
node = WEBKIT_DOM_NODE (webkit_dom_range_clone_contents (range, NULL));
while (node) {
- if (webkit_dom_node_get_node_type (node) == 3)
+ if (WEBKIT_DOM_IS_TEXT (node))
return TRUE;
if (webkit_dom_node_has_child_nodes (node)) {