diff options
author | Dan Vrátil <dvratil@redhat.com> | 2011-04-27 23:42:49 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:58 +0800 |
commit | 4542662853b2a7707f09a5428d3121d00faf93ba (patch) | |
tree | 3c73a29e0d70f3f4c9f74f884d89842b2cdd7114 /mail/e-mail-display.c | |
parent | 2abbff465156c62c0825190a4408fe92b4d55bc1 (diff) | |
download | gsoc2013-evolution-4542662853b2a7707f09a5428d3121d00faf93ba.tar.gz gsoc2013-evolution-4542662853b2a7707f09a5428d3121d00faf93ba.tar.zst gsoc2013-evolution-4542662853b2a7707f09a5428d3121d00faf93ba.zip |
Bug #303653 - Make headers collapsable in preview pane
Diffstat (limited to 'mail/e-mail-display.c')
-rw-r--r-- | mail/e-mail-display.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c index c0c96b5066..c3ca4d3f10 100644 --- a/mail/e-mail-display.c +++ b/mail/e-mail-display.c @@ -292,6 +292,11 @@ mail_display_link_clicked (GtkHTML *html, flags |= EM_FORMAT_HTML_HEADER_BCC; else flags &= ~EM_FORMAT_HTML_HEADER_BCC; + } else if (strcmp (uri, "##HEADERS##") == 0) { + if (em_format_html_get_headers_state (priv->formatter) == EM_FORMAT_HTML_HEADERS_STATE_COLLAPSED) + em_format_html_set_headers_state (priv->formatter, EM_FORMAT_HTML_HEADERS_STATE_EXPANDED); + else + em_format_html_set_headers_state (priv->formatter, EM_FORMAT_HTML_HEADERS_STATE_COLLAPSED); } priv->formatter->header_wrap_flags = flags; |