diff options
author | Dan Vrátil <dvratil@redhat.com> | 2012-08-09 01:33:08 +0800 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2012-08-09 01:39:27 +0800 |
commit | 967b238b77c1912c33e1a508781d9124b9e351a7 (patch) | |
tree | 71bbf3a185a1cbe047cf97f60f38fa504bc2a51f /plugins | |
parent | b24af8b9cd942e50c43c61e7e688fda175ea858f (diff) | |
download | gsoc2013-evolution-967b238b77c1912c33e1a508781d9124b9e351a7.tar gsoc2013-evolution-967b238b77c1912c33e1a508781d9124b9e351a7.tar.gz gsoc2013-evolution-967b238b77c1912c33e1a508781d9124b9e351a7.tar.bz2 gsoc2013-evolution-967b238b77c1912c33e1a508781d9124b9e351a7.tar.lz gsoc2013-evolution-967b238b77c1912c33e1a508781d9124b9e351a7.tar.xz gsoc2013-evolution-967b238b77c1912c33e1a508781d9124b9e351a7.tar.zst gsoc2013-evolution-967b238b77c1912c33e1a508781d9124b9e351a7.zip |
Remove all references to JavaScriptCore and use of JavaScript
JavaScript is disabled in EWebView, so any attempt to evaluate
a JavaScript code will fail. We are using DOM bindings
instead to interact with the document.
This commit removes some helper functions created in the early
days of WebKit port which are not used anymore and also fixes
mail-to-task plugin, which was relying on some JavaScript.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mail-to-task/mail-to-task.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c index 3014388e4c..2992fc961f 100644 --- a/plugins/mail-to-task/mail-to-task.c +++ b/plugins/mail-to-task/mail-to-task.c @@ -1068,16 +1068,15 @@ get_selected_text (EMailReader *reader) { EMailDisplay *display; gchar *text = NULL; - gint len; display = e_mail_reader_get_mail_display (reader); if (!e_web_view_is_selection_active (E_WEB_VIEW (display))) return NULL; - text = e_mail_display_get_selection_plain_text (display, &len); + text = e_mail_display_get_selection_plain_text (display); - if (text == NULL || !text_contains_nonwhitespace (text, len)) { + if (text == NULL || !text_contains_nonwhitespace (text, strlen (text))) { g_free (text); return NULL; } |