diff options
author | Jason Leach <jleach@ximian.com> | 2001-06-06 08:05:53 +0800 |
---|---|---|
committer | Jacob Leach <jleach@src.gnome.org> | 2001-06-06 08:05:53 +0800 |
commit | 9a3c412e4f46e34c34463c5661d4a7e5d7758bf6 (patch) | |
tree | 7c521179d07448d9899677b98db873ad3fd6a7df /shell/e-shell-view-menu.c | |
parent | 70c01c8bb7947db6b98ef637afd3f6d06d2c182c (diff) | |
download | gsoc2013-evolution-9a3c412e4f46e34c34463c5661d4a7e5d7758bf6.tar.gz gsoc2013-evolution-9a3c412e4f46e34c34463c5661d4a7e5d7758bf6.tar.zst gsoc2013-evolution-9a3c412e4f46e34c34463c5661d4a7e5d7758bf6.zip |
Plug in all the folder tree right click menu verbs so bonobo-warnings
2001-06-05 Jason Leach <jleach@ximian.com>
* e-shell-view-menu.c: Plug in all the folder tree right click
menu verbs so bonobo-warnings aren't emitted (even though the
respective implementation functions are currently unimplemented).
(command_delete_folder): New function, see above.
(command_rename_folder): Ditto.
(command_folder_properties): Ditto.
* e-shell-folder-commands.c (e_shell_command_delete_folder): New
function, currently unimplemented.
svn path=/trunk/; revision=10128
Diffstat (limited to 'shell/e-shell-view-menu.c')
-rw-r--r-- | shell/e-shell-view-menu.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c index 12d2b3ab02..1edeffeafe 100644 --- a/shell/e-shell-view-menu.c +++ b/shell/e-shell-view-menu.c @@ -372,6 +372,28 @@ command_copy_folder (BonoboUIComponent *uih, } static void +command_delete_folder (BonoboUIComponent *uih, + void *data, + const char *path) +{ + EShellView *shell_view; + + shell_view = E_SHELL_VIEW (data); + e_shell_command_delete_folder (e_shell_view_get_shell (shell_view), shell_view); +} + +static void +command_rename_folder (BonoboUIComponent *uih, + void *data, + const char *path) +{ + EShellView *shell_view; + + shell_view = E_SHELL_VIEW (data); + e_shell_command_rename_folder (e_shell_view_get_shell (shell_view), shell_view); +} + +static void command_add_folder_to_shortcut_bar (BonoboUIComponent *uih, void *data, const char *path) @@ -382,6 +404,17 @@ command_add_folder_to_shortcut_bar (BonoboUIComponent *uih, e_shell_command_add_to_shortcut_bar (e_shell_view_get_shell (shell_view), shell_view); } +static void +command_folder_properties (BonoboUIComponent *uih, + void *data, + const char *path) +{ + EShellView *shell_view; + + shell_view = E_SHELL_VIEW (data); + e_shell_command_folder_properties (e_shell_view_get_shell (shell_view), shell_view); +} + /* Going to a folder. */ @@ -556,8 +589,13 @@ BonoboUIVerb folder_verbs [] = { BONOBO_UI_VERB ("MoveFolder", command_move_folder), BONOBO_UI_VERB ("CopyFolder", command_copy_folder), + BONOBO_UI_VERB ("DeleteFolder", command_delete_folder), + BONOBO_UI_VERB ("RenameFolder", command_rename_folder), + BONOBO_UI_VERB ("AddFolderToShortcutBar", command_add_folder_to_shortcut_bar), + BONOBO_UI_VERB ("ChangeFolderProperties", command_folder_properties), + BONOBO_UI_VERB_END }; |