[evolution] Disable switcher actions when sidebar is hidden.
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution] Disable switcher actions when sidebar is hidden.
- Date: Wed, 2 Sep 2009 00:27:10 +0000 (UTC)
commit 4dbdbe168d601ac4b59c19426d2fec18fbf07811
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Sep 1 20:11:22 2009 -0400
Disable switcher actions when sidebar is hidden.
shell/e-shell-window-actions.c | 24 ++++++++++++++++++++++++
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 77e50c5..4fc8448 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 3b8774a..757487b 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) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]