diff options
Diffstat (limited to 'mail/e-mail-reader.c')
-rw-r--r-- | mail/e-mail-reader.c | 36 |
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), |