diff options
author | Not Zed <NotZed@Ximian.com> | 2001-04-05 10:06:26 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-04-05 10:06:26 +0800 |
commit | 130017e15709e1f16cac8271214d0f7f41845a2f (patch) | |
tree | 85723c00f1d45c5352f2c4e97e445c85f4a1c761 /mail/folder-browser.c | |
parent | f66390af642e3a02bbfb2974955eeae14770e406 (diff) | |
download | gsoc2013-evolution-130017e15709e1f16cac8271214d0f7f41845a2f.tar.gz gsoc2013-evolution-130017e15709e1f16cac8271214d0f7f41845a2f.tar.zst gsoc2013-evolution-130017e15709e1f16cac8271214d0f7f41845a2f.zip |
Merge from evolution-0-10 to evolution-0-10-merge-0 into head.
2001-04-05 Not Zed <NotZed@Ximian.com>
* Merge from evolution-0-10 to evolution-0-10-merge-0 into head.
svn path=/trunk/; revision=9193
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 20 |
1 files changed, 20 insertions, 0 deletions
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 <gal/widgets/e-popup-menu.h> +#include <camel/camel-vtrash-folder.h> + #define d(x) x #define PARENT_TYPE (gtk_table_get_type ()) @@ -308,6 +311,23 @@ folder_browser_toggle_threads (BonoboUIComponent *component, } 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, Bonobo_UIComponent_EventType type, |