From 130017e15709e1f16cac8271214d0f7f41845a2f Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 5 Apr 2001 02:06:26 +0000 Subject: Merge from evolution-0-10 to evolution-0-10-merge-0 into head. 2001-04-05 Not Zed * Merge from evolution-0-10 to evolution-0-10-merge-0 into head. svn path=/trunk/; revision=9193 --- mail/folder-browser.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'mail/folder-browser.c') diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 37267950ec..2c1fd764b9 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -41,6 +41,9 @@ #include "mail-local.h" #include "mail-config.h" +#include +#include + #define d(x) x #define PARENT_TYPE (gtk_table_get_type ()) @@ -307,6 +310,23 @@ folder_browser_toggle_threads (BonoboUIComponent *component, message_list_set_threaded (fb->message_list, atoi (state)); } +void +folder_browser_toggle_hide_deleted (BonoboUIComponent *component, + const char *path, + Bonobo_UIComponent_EventType type, + const char *state, + gpointer user_data) +{ + FolderBrowser *fb = user_data; + + if (type != Bonobo_UIComponent_STATE_CHANGED) + return; + + if (!(fb->folder && CAMEL_IS_VTRASH_FOLDER(fb->folder))) + mail_config_set_hide_deleted (atoi (state)); + message_list_set_hidedeleted (fb->message_list, atoi (state)); +} + void folder_browser_toggle_view_source (BonoboUIComponent *component, const char *path, -- cgit