[evolution] Use EWebView functions whenever possible.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Use EWebView functions whenever possible.
- Date: Mon, 31 May 2010 03:05:34 +0000 (UTC)
commit 6640519e4863961fa146fbc198709986dc5bb902
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun May 30 23:03:41 2010 -0400
Use EWebView functions whenever possible.
mail/e-mail-reader-utils.c | 5 ++++-
modules/mail/e-mail-shell-view-private.c | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c
index 3282af3..9d798d9 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);
diff --git a/modules/mail/e-mail-shell-view-private.c b/modules/mail/e-mail-shell-view-private.c
index 8a45c4b..42394b2 100644
--- a/modules/mail/e-mail-shell-view-private.c
+++ b/modules/mail/e-mail-shell-view-private.c
@@ -268,10 +268,13 @@ mail_shell_view_scroll_cb (EMailShellView *mail_shell_view,
EShellWindow *shell_window;
EShellSettings *shell_settings;
EMailReader *reader;
+ EWebView *web_view;
GtkWidget *message_list;
gboolean magic_spacebar;
- if (html->binding_handled || gtk_html_get_caret_mode (html))
+ web_view = E_WEB_VIEW (html);
+
+ if (html->binding_handled || e_web_view_get_caret_mode (web_view))
return;
if (orientation != GTK_ORIENTATION_VERTICAL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]