diff options
-rw-r--r-- | shell/ChangeLog | 7 | ||||
-rw-r--r-- | shell/e-shell-view-menu.c | 10 |
2 files changed, 15 insertions, 2 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 4790299adc..666b16225c 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,10 @@ +2000-10-09 Michael Meeks <michael@helixcode.com> + + * e-shell-view-menu.c: Change paths in such a way as to require + HEAD bonobo. + (command_toggle_folder_bar, command_toggle_shortcut_bar): only + respond to state changes. + 2000-10-07 Matt Wilson <msw@redhat.com> * e-shell-view.c (init): initialize priv->sockets to NULL, fixes 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) |