diff options
author | Dan Vrátil <dvratil@redhat.com> | 2011-04-27 23:42:49 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-04-27 23:42:49 +0800 |
commit | 7a6143871342888bfb3f3844fc8c94f0fe7ed18e (patch) | |
tree | 9562c1311beb62767437e008b809266e7af06809 /mail/e-mail-paned-view.c | |
parent | 5fcaadbc9a16f711c0fe81933ec9615f289c8fa8 (diff) | |
download | gsoc2013-evolution-7a6143871342888bfb3f3844fc8c94f0fe7ed18e.tar.gz gsoc2013-evolution-7a6143871342888bfb3f3844fc8c94f0fe7ed18e.tar.zst gsoc2013-evolution-7a6143871342888bfb3f3844fc8c94f0fe7ed18e.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)); |