aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view-menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-view-menu.c')
-rw-r--r--shell/e-shell-view-menu.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c
index 61154d77ff..8d943fadd0 100644
--- a/shell/e-shell-view-menu.c
+++ b/shell/e-shell-view-menu.c
@@ -200,6 +200,9 @@ command_toggle_folder_bar (BonoboUIComponent *component,
EShellViewSubwindowMode mode;
gboolean show;
+ if (type != Bonobo_UIComponent_STATE_CHANGED)
+ return;
+
shell_view = E_SHELL_VIEW (user_data);
show = atoi (state);
@@ -223,6 +226,9 @@ command_toggle_shortcut_bar (BonoboUIComponent *component,
EShellViewSubwindowMode mode;
gboolean show;
+ if (type != Bonobo_UIComponent_STATE_CHANGED)
+ return;
+
shell_view = E_SHELL_VIEW (user_data);
show = atoi (state);
@@ -434,8 +440,8 @@ menu_do_misc (BonoboUIComponent *component,
}
-#define SHORTCUT_BAR_TOGGLE_PATH "/menu/View/ShortcutBar"
-#define FOLDER_BAR_TOGGLE_PATH "/menu/View/FolderBar"
+#define SHORTCUT_BAR_TOGGLE_PATH "/commands/ViewShortcutBar"
+#define FOLDER_BAR_TOGGLE_PATH "/commands/ViewFolderBar"
void
e_shell_view_menu_setup (EShellView *shell_view)