diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-03-15 09:10:39 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-03-17 20:49:12 +0800 |
commit | 09b7686c4a2a359aa8f747719932ccbf12c3103b (patch) | |
tree | 99dbada4d36619f169b35fe8f47b3753d9b10325 /mail | |
parent | c5bc18cec08324f832f4d91dce3579c7332d9a0b (diff) | |
download | gsoc2013-evolution-09b7686c4a2a359aa8f747719932ccbf12c3103b.tar gsoc2013-evolution-09b7686c4a2a359aa8f747719932ccbf12c3103b.tar.gz gsoc2013-evolution-09b7686c4a2a359aa8f747719932ccbf12c3103b.tar.bz2 gsoc2013-evolution-09b7686c4a2a359aa8f747719932ccbf12c3103b.tar.lz gsoc2013-evolution-09b7686c4a2a359aa8f747719932ccbf12c3103b.tar.xz gsoc2013-evolution-09b7686c4a2a359aa8f747719932ccbf12c3103b.tar.zst gsoc2013-evolution-09b7686c4a2a359aa8f747719932ccbf12c3103b.zip |
Add "headers-collapsed" setting.
Replaces "paned-view-headers-state", which was defined as an integer for
some stupid reason. Not bothering to migrate the old setting since it's
one button click.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-paned-view.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/mail/e-mail-paned-view.c b/mail/e-mail-paned-view.c index 2fbf48a5f2..bf7907031c 100644 --- a/mail/e-mail-paned-view.c +++ b/mail/e-mail-paned-view.c @@ -624,8 +624,7 @@ mail_paned_view_constructed (GObject *object) EShellBackend *shell_backend; EShellWindow *shell_window; EShellView *shell_view; - EShell *shell; - EShellSettings *shell_settings; + GSettings *settings; EMailReader *reader; EMailBackend *backend; EMailSession *session; @@ -644,16 +643,21 @@ 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); backend = E_MAIL_BACKEND (shell_backend); session = e_mail_backend_get_session (backend); - g_object_bind_property ( - shell_settings, "paned-view-headers-state", + /* FIXME This should be an EMailPanedView property, so + * it can be configured from the settings module. */ + + settings = g_settings_new ("org.gnome.evolution.mail"); + + g_settings_bind ( + settings, "headers-collapsed", priv->display, "headers-collapsed", - G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE); + G_SETTINGS_BIND_DEFAULT); + + g_object_unref (settings); /* Build content widgets. */ |