From 057394f02e7ca7dc511d16492651c7430ee86567 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 15 Jan 2004 16:15:10 +0000 Subject: added ForgetPasswords menu item. (command_forget_passwords): callback for 2004-01-15 Rodrigo Moya * e-shell-view-menu.c: added ForgetPasswords menu item. (command_forget_passwords): callback for the new menu item. * e-shell-window-commands.c: (command_forget_passwords): ditto. svn path=/trunk/; revision=24246 --- shell/ChangeLog | 7 +++++++ shell/e-shell-view-menu.c | 10 ++++++++++ shell/e-shell-window-commands.c | 9 +++++++++ 3 files changed, 26 insertions(+) diff --git a/shell/ChangeLog b/shell/ChangeLog index a4aa7b2c3d..2941106992 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,10 @@ +2004-01-15 Rodrigo Moya + + * e-shell-view-menu.c: added ForgetPasswords menu item. + (command_forget_passwords): callback for the new menu item. + + * e-shell-window-commands.c: (command_forget_passwords): ditto. + 2004-01-15 JP Rosevear * main.c (kill_dataserver): kill the correct binary, tidy includes diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c index 0b9bc8c071..5ea85b276e 100644 --- a/shell/e-shell-view-menu.c +++ b/shell/e-shell-view-menu.c @@ -44,6 +44,7 @@ #include "evolution-shell-component-utils.h" #include "e-util/e-dialog-utils.h" +#include "e-util/e-passwords.h" #include @@ -311,6 +312,14 @@ command_send_receive (BonoboUIComponent *ui_component, e_shell_send_receive (shell); } +static void +command_forget_passwords (BonoboUIComponent *ui_component, + void *data, + const char *path) +{ + e_passwords_forget_passwords(); +} + static void command_new_folder (BonoboUIComponent *uih, void *data, @@ -689,6 +698,7 @@ static BonoboUIVerb folder_verbs [] = { static BonoboUIVerb actions_verbs[] = { BONOBO_UI_VERB ("SendReceive", command_send_receive), + BONOBO_UI_VERB ("ForgetPasswords", command_forget_passwords), BONOBO_UI_VERB_END }; diff --git a/shell/e-shell-window-commands.c b/shell/e-shell-window-commands.c index f5d9bda47c..d9092c22a8 100644 --- a/shell/e-shell-window-commands.c +++ b/shell/e-shell-window-commands.c @@ -32,6 +32,7 @@ #include "evolution-shell-component-utils.h" #include "e-util/e-dialog-utils.h" +#include "e-util/e-passwords.h" #include #include @@ -218,6 +219,13 @@ command_send_receive (BonoboUIComponent *uih, e_shell_send_receive (e_shell_window_peek_shell (window)); } +static void +command_forget_passwords (BonoboUIComponent *ui_component, + void *data, + const char *path) +{ + e_passwords_forget_passwords(); +} /* Tools menu. */ @@ -257,6 +265,7 @@ static BonoboUIVerb new_verbs [] = { static BonoboUIVerb actions_verbs[] = { BONOBO_UI_VERB ("SendReceive", (BonoboUIVerbFn) command_send_receive), + BONOBO_UI_VERB ("ForgetPasswords", command_forget_passwords), BONOBO_UI_VERB_END }; -- cgit