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/addressbook/e-book-shell-view-actions.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/addressbook/e-book-shell-view-actions.c') diff --git a/modules/addressbook/e-book-shell-view-actions.c b/modules/addressbook/e-book-shell-view-actions.c index c2195e52de..5daf7e51df 100644 --- a/modules/addressbook/e-book-shell-view-actions.c +++ b/modules/addressbook/e-book-shell-view-actions.c @@ -1007,6 +1007,14 @@ e_book_shell_view_actions_init (EBookShellView *book_shell_view) g_signal_connect ( ACTION (SEARCH_EXECUTE), "activate", G_CALLBACK (action_search_execute_cb), book_shell_view); + + e_binding_new ( + G_OBJECT (ACTION (CONTACT_PREVIEW)), "active", + G_OBJECT (ACTION (CONTACT_VIEW_CLASSIC)), "sensitive"); + + e_binding_new ( + G_OBJECT (ACTION (CONTACT_PREVIEW)), "active", + G_OBJECT (ACTION (CONTACT_VIEW_VERTICAL)), "sensitive"); } void -- cgit v1.2.3