aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar
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/calendar
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/calendar')
-rw-r--r--modules/calendar/e-memo-shell-view-actions.c8
-rw-r--r--modules/calendar/e-memo-shell-view-private.h1
-rw-r--r--modules/calendar/e-task-shell-view-actions.c8
3 files changed, 17 insertions, 0 deletions
diff --git a/modules/calendar/e-memo-shell-view-actions.c b/modules/calendar/e-memo-shell-view-actions.c
index 0161eeb198..8604d8e2c5 100644
--- a/modules/calendar/e-memo-shell-view-actions.c
+++ b/modules/calendar/e-memo-shell-view-actions.c
@@ -933,6 +933,14 @@ e_memo_shell_view_actions_init (EMemoShellView *memo_shell_view)
g_signal_connect (
ACTION (SEARCH_EXECUTE), "activate",
G_CALLBACK (action_search_execute_cb), memo_shell_view);
+
+ e_binding_new (
+ G_OBJECT (ACTION (MEMO_PREVIEW)), "active",
+ G_OBJECT (ACTION (MEMO_VIEW_CLASSIC)), "sensitive");
+
+ e_binding_new (
+ G_OBJECT (ACTION (MEMO_PREVIEW)), "active",
+ G_OBJECT (ACTION (MEMO_VIEW_VERTICAL)), "sensitive");
}
void
diff --git a/modules/calendar/e-memo-shell-view-private.h b/modules/calendar/e-memo-shell-view-private.h
index c7ece91f68..857e924363 100644
--- a/modules/calendar/e-memo-shell-view-private.h
+++ b/modules/calendar/e-memo-shell-view-private.h
@@ -29,6 +29,7 @@
#include <libedataserver/e-categories.h>
#include <libedataserver/e-sexp.h>
+#include "e-util/e-binding.h"
#include "e-util/e-dialog-utils.h"
#include "e-util/e-error.h"
#include "e-util/e-util.h"
diff --git a/modules/calendar/e-task-shell-view-actions.c b/modules/calendar/e-task-shell-view-actions.c
index d4fb94c2e5..b08f9656c9 100644
--- a/modules/calendar/e-task-shell-view-actions.c
+++ b/modules/calendar/e-task-shell-view-actions.c
@@ -1133,6 +1133,14 @@ e_task_shell_view_actions_init (ETaskShellView *task_shell_view)
g_signal_connect (
ACTION (SEARCH_EXECUTE), "activate",
G_CALLBACK (action_search_execute_cb), task_shell_view);
+
+ e_binding_new (
+ G_OBJECT (ACTION (TASK_PREVIEW)), "active",
+ G_OBJECT (ACTION (TASK_VIEW_CLASSIC)), "sensitive");
+
+ e_binding_new (
+ G_OBJECT (ACTION (TASK_PREVIEW)), "active",
+ G_OBJECT (ACTION (TASK_VIEW_VERTICAL)), "sensitive");
}
void