From d97c776f24ce577dc4a24c9be2d3830faa7627e8 Mon Sep 17 00:00:00 2001 From: Dan Vrátil Date: Wed, 28 Mar 2012 18:39:26 +0200 Subject: WebKit port - port plugins --- plugins/mail-to-task/mail-to-task.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'plugins/mail-to-task/mail-to-task.c') diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c index 6cf942acb4..09ec15d6ef 100644 --- a/plugins/mail-to-task/mail-to-task.c +++ b/plugins/mail-to-task/mail-to-task.c @@ -32,7 +32,6 @@ #include #include -#include #include #include #include @@ -1062,18 +1061,16 @@ text_contains_nonwhitespace (const gchar *text, static gchar * get_selected_text (EMailReader *reader) { - EMFormatHTML *formatter; - EWebView *web_view; + EMailDisplay *display; gchar *text = NULL; gint len; - formatter = e_mail_reader_get_formatter (reader); - web_view = em_format_html_get_web_view (formatter); + display = e_mail_reader_get_mail_display (reader); - if (!e_web_view_is_selection_active (web_view)) + if (!e_web_view_is_selection_active (E_WEB_VIEW (display))) return NULL; - text = gtk_html_get_selection_plain_text (GTK_HTML (web_view), &len); + text = e_mail_display_get_selection_plain_text (display, &len); if (text == NULL || !text_contains_nonwhitespace (text, len)) { g_free (text); -- cgit