diff options
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); -} |