aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-02 08:26:33 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-02 08:26:33 +0800
commit6b2a55be48922c9fe5c94d654a4d463f23a428f2 (patch)
tree653b4d56306bc6ac8a3c2f93919aec949205b1ef /modules/mail
parent4dbdbe168d601ac4b59c19426d2fec18fbf07811 (diff)
downloadgsoc2013-evolution-6b2a55be48922c9fe5c94d654a4d463f23a428f2.tar
gsoc2013-evolution-6b2a55be48922c9fe5c94d654a4d463f23a428f2.tar.gz
gsoc2013-evolution-6b2a55be48922c9fe5c94d654a4d463f23a428f2.tar.bz2
gsoc2013-evolution-6b2a55be48922c9fe5c94d654a4d463f23a428f2.tar.lz
gsoc2013-evolution-6b2a55be48922c9fe5c94d654a4d463f23a428f2.tar.xz
gsoc2013-evolution-6b2a55be48922c9fe5c94d654a4d463f23a428f2.tar.zst
gsoc2013-evolution-6b2a55be48922c9fe5c94d654a4d463f23a428f2.zip
Disable classic/vertical options when preview is hidden.
Diffstat (limited to 'modules/mail')
-rw-r--r--modules/mail/e-mail-shell-view-actions.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c
index 5e6a9ba9cf..11cedfbb3d 100644
--- a/modules/mail/e-mail-shell-view-actions.c
+++ b/modules/mail/e-mail-shell-view-actions.c
@@ -1583,6 +1583,14 @@ e_mail_shell_view_actions_init (EMailShellView *mail_shell_view)
G_OBJECT (ACTION (MAIL_PREVIEW)), "active",
G_OBJECT (shell_content), "preview-visible");
+ e_binding_new (
+ G_OBJECT (ACTION (MAIL_PREVIEW)), "active",
+ G_OBJECT (ACTION (MAIL_VIEW_CLASSIC)), "sensitive");
+
+ e_binding_new (
+ G_OBJECT (ACTION (MAIL_PREVIEW)), "active",
+ G_OBJECT (ACTION (MAIL_VIEW_VERTICAL)), "sensitive");
+
/* XXX The boolean sense of the GConf key is the inverse of
* the menu item, so we have to maintain two properties. */
e_mutual_binding_new_with_negation (