diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-07-31 18:24:40 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-07-31 18:24:40 +0800 |
commit | 0a4e3a2492e11481c6fd32fddad0f3faf7735b31 (patch) | |
tree | 77d1dc53590c45b87c71765125b967d1dab802a5 /e-util/e-html-editor-selection.h | |
parent | 1a9fc0f57478ed1149292ca1a7b5ed9b56d1a276 (diff) | |
download | gsoc2013-evolution-0a4e3a2492e11481c6fd32fddad0f3faf7735b31.tar gsoc2013-evolution-0a4e3a2492e11481c6fd32fddad0f3faf7735b31.tar.gz gsoc2013-evolution-0a4e3a2492e11481c6fd32fddad0f3faf7735b31.tar.bz2 gsoc2013-evolution-0a4e3a2492e11481c6fd32fddad0f3faf7735b31.tar.lz gsoc2013-evolution-0a4e3a2492e11481c6fd32fddad0f3faf7735b31.tar.xz gsoc2013-evolution-0a4e3a2492e11481c6fd32fddad0f3faf7735b31.tar.zst gsoc2013-evolution-0a4e3a2492e11481c6fd32fddad0f3faf7735b31.zip |
EHTMLEditorSelection - Introduce e_html_editor_selection_is_collapsed and use it where possible
Before we were comparing the selection text to look if the selection is
collapsed. Use webkit_dom_range_get_collapsed instead.
Diffstat (limited to 'e-util/e-html-editor-selection.h')
-rw-r--r-- | e-util/e-html-editor-selection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/e-util/e-html-editor-selection.h b/e-util/e-html-editor-selection.h index 291440554b..2bef77f052 100644 --- a/e-util/e-html-editor-selection.h +++ b/e-util/e-html-editor-selection.h @@ -161,6 +161,8 @@ void e_html_editor_selection_unlink (EHTMLEditorSelection *selection); void e_html_editor_selection_create_link (EHTMLEditorSelection *selection, const gchar *uri); +gboolean e_html_editor_selection_is_collapsed + (EHTMLEditorSelection *selection); const gchar * e_html_editor_selection_get_string (EHTMLEditorSelection *selection); void e_html_editor_selection_replace (EHTMLEditorSelection *selection, |