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-paned-view.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-paned-view.c')
-rw-r--r-- | mail/e-mail-paned-view.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/e-mail-paned-view.c b/mail/e-mail-paned-view.c index 20a0980949..c1e4cc415a 100644 --- a/mail/e-mail-paned-view.c +++ b/mail/e-mail-paned-view.c @@ -579,6 +579,8 @@ mail_paned_view_constructed (GObject *object) EShellBackend *shell_backend; EShellWindow *shell_window; EShellView *shell_view; + EShell *shell; + EShellSettings *shell_settings; ESearchBar *search_bar; EMailReader *reader; EMailView *view; @@ -594,6 +596,15 @@ mail_paned_view_constructed (GObject *object) shell_view = e_mail_view_get_shell_view (view); shell_window = e_shell_view_get_shell_window (shell_view); shell_backend = e_shell_view_get_shell_backend (shell_view); + shell = e_shell_window_get_shell (shell_window); + shell_settings = e_shell_get_shell_settings (shell); + + /* Make headers collapsable and store state of headers in config file */ + em_format_html_set_headers_collapsable (EM_FORMAT_HTML (priv->formatter), TRUE); + g_object_bind_property (shell_settings, "paned-view-headers-state", + EM_FORMAT_HTML (priv->formatter), "headers-state", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); web_view = em_format_html_get_web_view ( EM_FORMAT_HTML (priv->formatter)); |