diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-10-26 08:16:31 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-10-26 08:16:31 +0800 |
commit | 3a69bfad533e0fde9f36ad9fa7f8bfa52b15c694 (patch) | |
tree | 00c7b34b2dd1f08b6a6c434b99823d3607fdf305 /mail/mail-callbacks.c | |
parent | 4eeed4e227b3acd9dc3983427f7cfff775468e51 (diff) | |
download | gsoc2013-evolution-3a69bfad533e0fde9f36ad9fa7f8bfa52b15c694.tar gsoc2013-evolution-3a69bfad533e0fde9f36ad9fa7f8bfa52b15c694.tar.gz gsoc2013-evolution-3a69bfad533e0fde9f36ad9fa7f8bfa52b15c694.tar.bz2 gsoc2013-evolution-3a69bfad533e0fde9f36ad9fa7f8bfa52b15c694.tar.lz gsoc2013-evolution-3a69bfad533e0fde9f36ad9fa7f8bfa52b15c694.tar.xz gsoc2013-evolution-3a69bfad533e0fde9f36ad9fa7f8bfa52b15c694.tar.zst gsoc2013-evolution-3a69bfad533e0fde9f36ad9fa7f8bfa52b15c694.zip |
Don't forget to unref the FilterDriver.
2000-10-25 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (do_send_mail): Don't forget to unref the
FilterDriver.
* mail-callbacks.c (apply_filters): New callback for applying
on-demand filters. (removed the old on-demand filters callback).
* mail-ops.c (do_filter_ondemand): Rewrote to apply "incoming"
filters to all selected messages.
(mail_do_filter_ondemand): No longer takes a FilterContext
argument or a destination folder argument (why did we ever need
this last one??) but now takes a uids argument.
* folder-browser-factory.c: Add a MessageApplyFilters menu item.
svn path=/trunk/; revision=6190
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index e2b8c8b4be..1b088fe4df 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -547,6 +547,19 @@ copy_msg (GtkWidget *widget, gpointer user_data) } void +apply_filters (GtkWidget *widget, gpointer user_data) +{ + FolderBrowser *fb = FOLDER_BROWSER (user_data); + MessageList *ml = fb->message_list; + GPtrArray *uids; + + uids = g_ptr_array_new (); + message_list_foreach (ml, enumerate_msg, uids); + + mail_do_filter_ondemand (fb->folder, uids); +} + +void select_all (BonoboUIComponent *uih, void *user_data, const char *path) { FolderBrowser *fb = FOLDER_BROWSER (user_data); @@ -883,14 +896,3 @@ edit_message (BonoboUIComponent *uih, void *user_data, const char *path) { edit_msg (NULL, user_data); } - -void -run_filter_ondemand (BonoboUIComponent *uih, gpointer user_data, const char *path) -{ - struct fb_ondemand_closure *oc = (struct fb_ondemand_closure *) user_data; - - if (oc->fb->folder == NULL) - return; - - mail_do_filter_ondemand (oc->fb->filter_context, oc->fb->folder, oc->fb->folder); -} |