diff options
-rw-r--r-- | shell/e-shell-window-actions.c | 24 | ||||
-rw-r--r-- | shell/e-shell-window-actions.h | 2 |
2 files changed, 26 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 * diff --git a/shell/e-shell-window-actions.h b/shell/e-shell-window-actions.h index 3b8774a494..757487b72f 100644 --- a/shell/e-shell-window-actions.h +++ b/shell/e-shell-window-actions.h @@ -83,6 +83,8 @@ E_SHELL_WINDOW_ACTION ((window), "submit-bug") #define E_SHELL_WINDOW_ACTION_SWITCHER_INITIAL(window) \ E_SHELL_WINDOW_ACTION ((window), "switcher-initial") +#define E_SHELL_WINDOW_ACTION_SWITCHER_MENU(window) \ + E_SHELL_WINDOW_ACTION ((window), "switcher-menu") #define E_SHELL_WINDOW_ACTION_SWITCHER_STYLE_BOTH(window) \ E_SHELL_WINDOW_ACTION ((window), "switcher-style-both") #define E_SHELL_WINDOW_ACTION_SWITCHER_STYLE_ICONS(window) \ |