From 967b238b77c1912c33e1a508781d9124b9e351a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Wed, 8 Aug 2012 19:33:08 +0200 Subject: 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. --- plugins/mail-to-task/mail-to-task.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/mail-to-task') 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; } -- cgit v1.2.3