aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-reader.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@gnome.org>2010-07-13 15:31:11 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-07-26 09:29:59 +0800
commit75de89ef04f0bd69fe5d33919e281bdb8c30bd9e (patch)
treefe6acd687988f6972c362ee8991dce83b14c8a78 /mail/e-mail-reader.c
parent9849889089a50d0e7a6efc37037956af83abc358 (diff)
downloadgsoc2013-evolution-75de89ef04f0bd69fe5d33919e281bdb8c30bd9e.tar.gz
gsoc2013-evolution-75de89ef04f0bd69fe5d33919e281bdb8c30bd9e.tar.zst
gsoc2013-evolution-75de89ef04f0bd69fe5d33919e281bdb8c30bd9e.zip
Make the update-actions work across tabs.
Diffstat (limited to 'mail/e-mail-reader.c')
-rw-r--r--mail/e-mail-reader.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index 71e049bade..a9ff239dd4 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -3001,9 +3001,45 @@ e_mail_reader_init (EMailReader *reader)
void
e_mail_reader_init_private (EMailReader *reader)
{
+ EMFormatHTML *formatter;
+ EWebView *web_view;
+ GtkWidget *message_list;
+
+ g_return_if_fail (E_IS_MAIL_READER (reader));
+
+ formatter = e_mail_reader_get_formatter (reader);
+ message_list = e_mail_reader_get_message_list (reader);
+
+ web_view = em_format_html_get_web_view (formatter);
quark_private = g_quark_from_static_string ("EMailReader-private");
+ /* Connect signals. */
+
+ g_signal_connect_swapped (
+ web_view, "key-press-event",
+ G_CALLBACK (mail_reader_key_press_event_cb), reader);
+
+ g_signal_connect_swapped (
+ message_list, "message-selected",
+ G_CALLBACK (mail_reader_message_selected_cb), reader);
+
+ g_signal_connect_swapped (
+ message_list, "message-list-built",
+ G_CALLBACK (mail_reader_emit_folder_loaded), reader);
+
+ g_signal_connect_swapped (
+ message_list, "double-click",
+ G_CALLBACK (mail_reader_double_click_cb), reader);
+
+ g_signal_connect_swapped (
+ message_list, "key-press",
+ G_CALLBACK (mail_reader_key_press_cb), reader);
+
+ g_signal_connect_swapped (
+ message_list, "selection-change",
+ G_CALLBACK (e_mail_reader_changed), reader);
+
g_object_set_qdata_full (
G_OBJECT (reader), quark_private,
g_slice_new0 (EMailReaderPrivate),