From 6b2a55be48922c9fe5c94d654a4d463f23a428f2 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 1 Sep 2009 20:26:33 -0400 Subject: Disable classic/vertical options when preview is hidden. --- modules/mail/e-mail-shell-view-actions.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/mail') 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 ( -- cgit v1.2.3