aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-notebook-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-11-01 09:40:42 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-11-01 10:54:30 +0800
commitc53fd13220a177dedacca7b702c6dde5eb0a47f1 (patch)
treef4c6181f947360054cff9d7f9aea506694215463 /mail/e-mail-notebook-view.c
parenta1dd1897d50f11ab891b2052313d4b17e0d99b5a (diff)
downloadgsoc2013-evolution-c53fd13220a177dedacca7b702c6dde5eb0a47f1.tar.gz
gsoc2013-evolution-c53fd13220a177dedacca7b702c6dde5eb0a47f1.tar.zst
gsoc2013-evolution-c53fd13220a177dedacca7b702c6dde5eb0a47f1.zip
EMailReader: Add a get_alert_sink() method.
Diffstat (limited to 'mail/e-mail-notebook-view.c')
-rw-r--r--mail/e-mail-notebook-view.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/mail/e-mail-notebook-view.c b/mail/e-mail-notebook-view.c
index 1fd9c73a23..c0fbcf534e 100644
--- a/mail/e-mail-notebook-view.c
+++ b/mail/e-mail-notebook-view.c
@@ -770,6 +770,20 @@ mail_notebook_view_get_action_group (EMailReader *reader)
return E_SHELL_WINDOW_ACTION_GROUP_MAIL (shell_window);
}
+static EAlertSink *
+mail_notebook_view_get_alert_sink (EMailReader *reader)
+{
+ EMailView *view;
+ EShellView *shell_view;
+ EShellContent *shell_content;
+
+ view = E_MAIL_VIEW (reader);
+ shell_view = e_mail_view_get_shell_view (view);
+ shell_content = e_shell_view_get_shell_content (shell_view);
+
+ return E_ALERT_SINK (shell_content);
+}
+
static EMailBackend *
mail_notebook_view_get_backend (EMailReader *reader)
{
@@ -1310,6 +1324,7 @@ static void
e_mail_notebook_view_reader_init (EMailReaderInterface *interface)
{
interface->get_action_group = mail_notebook_view_get_action_group;
+ interface->get_alert_sink = mail_notebook_view_get_alert_sink;
interface->get_backend = mail_notebook_view_get_backend;
interface->get_formatter = mail_notebook_view_get_formatter;
interface->get_hide_deleted = mail_notebook_view_get_hide_deleted;