aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-reader-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-05-31 11:03:41 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-05-31 11:05:14 +0800
commit6640519e4863961fa146fbc198709986dc5bb902 (patch)
treed22fd3dd028c19c060f1989f552a12a0412e98a2 /mail/e-mail-reader-utils.c
parentfb880ceb4f95bce331fe49b26bba5eec0757f07f (diff)
downloadgsoc2013-evolution-6640519e4863961fa146fbc198709986dc5bb902.tar.gz
gsoc2013-evolution-6640519e4863961fa146fbc198709986dc5bb902.tar.zst
gsoc2013-evolution-6640519e4863961fa146fbc198709986dc5bb902.zip
Use EWebView functions whenever possible.
Diffstat (limited to 'mail/e-mail-reader-utils.c')
-rw-r--r--mail/e-mail-reader-utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c
index 3282af34af..9d798d92c9 100644
--- a/mail/e-mail-reader-utils.c
+++ b/mail/e-mail-reader-utils.c
@@ -30,6 +30,7 @@
#include "e-util/e-alert-dialog.h"
#include "filter/e-filter-rule.h"
+#include "misc/e-web-view.h"
#include "mail/e-mail-browser.h"
#include "mail/em-composer-utils.h"
@@ -358,6 +359,7 @@ e_mail_reader_reply_to_message (EMailReader *reader,
CamelMimeMessage *new_message;
CamelMimeMessage *src_message;
CamelFolder *folder;
+ EWebView *web_view;
GtkHTML *html;
struct _camel_header_raw *header;
const gchar *uid;
@@ -372,6 +374,7 @@ e_mail_reader_reply_to_message (EMailReader *reader,
html_display = e_mail_reader_get_html_display (reader);
html = ((EMFormatHTML *) html_display)->html;
+ web_view = E_WEB_VIEW (html);
folder = e_mail_reader_get_folder (reader);
message_list = e_mail_reader_get_message_list (reader);
@@ -379,7 +382,7 @@ e_mail_reader_reply_to_message (EMailReader *reader,
uid = MESSAGE_LIST (message_list)->cursor_uid;
g_return_if_fail (uid != NULL);
- if (!gtk_html_command (html, "is-selection-active"))
+ if (!e_web_view_is_selection_active (web_view))
goto whole_message;
selection = gtk_html_get_selection_html (html, &length);