diff options
author | Ariel Rios <ariel@arcavia.com> | 2000-08-28 04:14:12 +0800 |
---|---|---|
committer | Ariel Rios <arios@src.gnome.org> | 2000-08-28 04:14:12 +0800 |
commit | b3a5afcf5b8b9c05e1763df68a2746bac38b464b (patch) | |
tree | 1c236a59f3be2d0b3e0f0f40e83fee34067ee7b6 /mail | |
parent | 2940d55e854382fc4c2f1e2bc472ce9d3b2f43b4 (diff) | |
download | gsoc2013-evolution-b3a5afcf5b8b9c05e1763df68a2746bac38b464b.tar.gz gsoc2013-evolution-b3a5afcf5b8b9c05e1763df68a2746bac38b464b.tar.zst gsoc2013-evolution-b3a5afcf5b8b9c05e1763df68a2746bac38b464b.zip |
Added bonobo menu handler for mark_all_deleted function.
2000-08-27 Ariel Rios <ariel@arcavia.com>
* folder-browser-factory.c (control_activate): Added bonobo menu handler for mark_all_deleted function.
* mail.h: (mark_all_deleted): Added prototype.
* mail-callbacks.c (mark_all_deleted): Added callback for marking all displayed messages in a folder as$
svn path=/trunk/; revision=5067
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 8 | ||||
-rw-r--r-- | mail/folder-browser-factory.c | 5 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 14 | ||||
-rw-r--r-- | mail/mail.h | 1 |
4 files changed, 28 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index df20047d42..e2eadbc881 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,11 @@ +2000-08-27 Ariel Rios <ariel@arcavia.com> + + * folder-browser-factory.c (control_activate): Added bonobo menu handler for mark_all_deleted function. + + * mail.h: (mark_all_deleted): Added prototype. + + * mail-callbacks.c (mark_all_deleted): Added callback for marking all displayed messages in a folder as deleted. + 2000-08-26 Ettore Perazzoli <ettore@helixcode.com> * mail-view.c (mail_view_create): Use diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c index c9431fbb60..d3eafcb933 100644 --- a/mail/folder-browser-factory.c +++ b/mail/folder-browser-factory.c @@ -267,6 +267,11 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih, BONOBO_UI_HANDLER_PIXMAP_NONE, NULL, 0, 0, mark_all_seen, folder_browser); bonobo_ui_handler_menu_new_item ( + uih, "/<Component Placeholder>/Folder/Delete all", + _("_Delete all"), NULL, -1, + BONOBO_UI_HANDLER_PIXMAP_NONE, NULL, 0, 0, + mark_all_deleted, folder_browser); + bonobo_ui_handler_menu_new_item ( uih, "/<Component Placeholder>/Folder/Expunge", _("_Expunge"), NULL, -1, BONOBO_UI_HANDLER_PIXMAP_NONE, NULL, 0, 0, diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index f80b91e136..c335315c34 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -462,6 +462,20 @@ mark_all_seen (BonoboUIHandler *uih, void *user_data, const char *path) } void +mark_all_deleted (BonoboUIHandler *uih, void *user_data, const char *path) +{ + FolderBrowser *fb = FOLDER_BROWSER (user_data); + MessageList *ml = fb->message_list; + + if (ml->folder == NULL) + return; + + mail_do_flag_all_messages (ml->folder, FALSE, + CAMEL_MESSAGE_DELETED, CAMEL_MESSAGE_DELETED); +} + + +void edit_msg (GtkWidget *widget, gpointer user_data) { FolderBrowser *fb = FOLDER_BROWSER (user_data); diff --git a/mail/mail.h b/mail/mail.h index df939305af..c5ea0c4b3e 100644 --- a/mail/mail.h +++ b/mail/mail.h @@ -64,6 +64,7 @@ void edit_msg (GtkWidget *widget, gpointer user_data); void view_msg (GtkWidget *widget, gpointer user_data); void mark_all_seen (BonoboUIHandler *uih, void *user_data, const char *path); +void mark_all_deleted (BonoboUIHandler *uih, void *user_data, const char *path); void edit_message (BonoboUIHandler *uih, void *user_data, const char *path); void view_message (BonoboUIHandler *uih, void *user_data, const char *path); void expunge_folder (BonoboUIHandler *uih, void *user_data, const char *path); |