[evolution/wip/webkit2] EHTMLEditorSelection - Replace g_strstr_len usage with strstr



commit 0cbde152bd678094e91e151e00b96aa6855c1ad1
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Mar 2 14:45:22 2016 +0100

    EHTMLEditorSelection - Replace g_strstr_len usage with strstr

 .../e-html-editor-selection-dom-functions.c        |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-selection-dom-functions.c 
b/web-extensions/composer/e-html-editor-selection-dom-functions.c
index 70ad1a3..7e36c31 100644
--- a/web-extensions/composer/e-html-editor-selection-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-selection-dom-functions.c
@@ -2353,7 +2353,7 @@ wrap_lines (WebKitDOMDocument *document,
                                g_free (text_content);
                                text_content = webkit_dom_node_get_text_content (node);
                        }
-                       newline = g_strstr_len (text_content, -1, "\n");
+                       newline = strstr (text_content, "\n");
 
                        next_sibling = node;
                        while (newline) {
@@ -2385,7 +2385,7 @@ wrap_lines (WebKitDOMDocument *document,
                                        text_content =
                                                webkit_dom_node_get_text_content (next_sibling);
                                }
-                               newline = g_strstr_len (text_content, -1, "\n");
+                               newline = strstr (text_content, "\n");
                        }
                        g_free (text_content);
                } else {
@@ -4512,7 +4512,7 @@ dom_selection_is_citation (WebKitDOMDocument *document)
        value = webkit_dom_element_get_attribute (WEBKIT_DOM_ELEMENT (node), "type");
 
        /* citation == <blockquote type='cite'> */
-       if (g_strstr_len (value, -1, "cite"))
+       if (strstr (value, "cite"))
                ret_val = TRUE;
        else
                ret_val = get_has_style (document, "citation");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]