From ccb4ef86d0520b9179f849c5c082941f13e177df Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 9 Oct 2000 12:02:20 +0000 Subject: Change paths in such a way as to require HEAD bonobo. 2000-10-09 Michael Meeks * 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. svn path=/trunk/; revision=5793 --- shell/ChangeLog | 7 +++++++ 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 + + * 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 * 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) -- cgit