diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-09-02 08:11:22 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-09-02 08:11:22 +0800 |
commit | 4dbdbe168d601ac4b59c19426d2fec18fbf07811 (patch) | |
tree | 7a74a08126e788e7e6a609ba1c51f47c97b2db03 | |
parent | 136adee47614d99ed26a294865cfd0d1ffb2cf7f (diff) | |
download | gsoc2013-evolution-4dbdbe168d601ac4b59c19426d2fec18fbf07811.tar.gz gsoc2013-evolution-4dbdbe168d601ac4b59c19426d2fec18fbf07811.tar.zst gsoc2013-evolution-4dbdbe168d601ac4b59c19426d2fec18fbf07811.zip |
Disable switcher actions when sidebar is hidden.
-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) \ |