aboutsummaryrefslogtreecommitdiffstats
path: root/modules/addressbook
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/addressbook
parent4dbdbe168d601ac4b59c19426d2fec18fbf07811 (diff)
downloadgsoc2013-evolution-6b2a55be48922c9fe5c94d654a4d463f23a428f2.tar.gz
gsoc2013-evolution-6b2a55be48922c9fe5c94d654a4d463f23a428f2.tar.zst
gsoc2013-evolution-6b2a55be48922c9fe5c94d654a4d463f23a428f2.zip
Disable classic/vertical options when preview is hidden.
Diffstat (limited to 'modules/addressbook')
-rw-r--r--modules/addressbook/e-book-shell-view-actions.c8
-rw-r--r--modules/addressbook/e-book-shell-view-private.h1
2 files changed, 9 insertions, 0 deletions
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
diff --git a/modules/addressbook/e-book-shell-view-private.h b/modules/addressbook/e-book-shell-view-private.h
index b49677680f..31165e49b3 100644
--- a/modules/addressbook/e-book-shell-view-private.h
+++ b/modules/addressbook/e-book-shell-view-private.h
@@ -32,6 +32,7 @@
#include <libedataserver/e-sexp.h>
#include <libedataserverui/e-source-selector.h>
+#include "e-util/e-binding.h"
#include "e-util/gconf-bridge.h"
#include "shell/e-shell-content.h"
#include "shell/e-shell-sidebar.h"