aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorAriel Rios <ariel@arcavia.com>2000-08-28 04:14:12 +0800
committerAriel Rios <arios@src.gnome.org>2000-08-28 04:14:12 +0800
commitb3a5afcf5b8b9c05e1763df68a2746bac38b464b (patch)
tree1c236a59f3be2d0b3e0f0f40e83fee34067ee7b6 /mail
parent2940d55e854382fc4c2f1e2bc472ce9d3b2f43b4 (diff)
downloadgsoc2013-evolution-b3a5afcf5b8b9c05e1763df68a2746bac38b464b.tar
gsoc2013-evolution-b3a5afcf5b8b9c05e1763df68a2746bac38b464b.tar.gz
gsoc2013-evolution-b3a5afcf5b8b9c05e1763df68a2746bac38b464b.tar.bz2
gsoc2013-evolution-b3a5afcf5b8b9c05e1763df68a2746bac38b464b.tar.lz
gsoc2013-evolution-b3a5afcf5b8b9c05e1763df68a2746bac38b464b.tar.xz
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/ChangeLog8
-rw-r--r--mail/folder-browser-factory.c5
-rw-r--r--mail/mail-callbacks.c14
-rw-r--r--mail/mail.h1
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);