aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window-actions.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-02 08:11:22 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-02 08:11:22 +0800
commit4dbdbe168d601ac4b59c19426d2fec18fbf07811 (patch)
tree7a74a08126e788e7e6a609ba1c51f47c97b2db03 /shell/e-shell-window-actions.c
parent136adee47614d99ed26a294865cfd0d1ffb2cf7f (diff)
downloadgsoc2013-evolution-4dbdbe168d601ac4b59c19426d2fec18fbf07811.tar.gz
gsoc2013-evolution-4dbdbe168d601ac4b59c19426d2fec18fbf07811.tar.zst
gsoc2013-evolution-4dbdbe168d601ac4b59c19426d2fec18fbf07811.zip
Disable switcher actions when sidebar is hidden.
Diffstat (limited to 'shell/e-shell-window-actions.c')
-rw-r--r--shell/e-shell-window-actions.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c
index 77e50c50d4..4fc8448518 100644
--- a/shell/e-shell-window-actions.c
+++ b/shell/e-shell-window-actions.c
@@ -1873,6 +1873,30 @@ e_shell_window_actions_init (EShellWindow *shell_window)
/* Fine tuning. */
g_object_set (ACTION (SEND_RECEIVE), "is-important", TRUE, NULL);
+
+ e_binding_new (
+ G_OBJECT (ACTION (SHOW_SIDEBAR)), "active",
+ G_OBJECT (ACTION (SHOW_SWITCHER)), "sensitive");
+
+ e_binding_new (
+ G_OBJECT (ACTION (SHOW_SIDEBAR)), "active",
+ G_OBJECT (ACTION (SWITCHER_STYLE_BOTH)), "sensitive");
+
+ e_binding_new (
+ G_OBJECT (ACTION (SHOW_SIDEBAR)), "active",
+ G_OBJECT (ACTION (SWITCHER_STYLE_ICONS)), "sensitive");
+
+ e_binding_new (
+ G_OBJECT (ACTION (SHOW_SIDEBAR)), "active",
+ G_OBJECT (ACTION (SWITCHER_STYLE_TEXT)), "sensitive");
+
+ e_binding_new (
+ G_OBJECT (ACTION (SHOW_SIDEBAR)), "active",
+ G_OBJECT (ACTION (SWITCHER_STYLE_USER)), "sensitive");
+
+ e_binding_new (
+ G_OBJECT (ACTION (SHOW_SIDEBAR)), "active",
+ G_OBJECT (ACTION (SWITCHER_MENU)), "sensitive");
}
GtkWidget *