aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-07-03 09:45:41 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-07-03 09:45:41 +0800
commitdafc74eeaf244b39d1fd0f8498d50d2535ca8bd9 (patch)
tree57a6212921112982b7a505d7489c1b23985561d7 /mail/component-factory.c
parent36765e48f24ad968a2bda97e7ee2056d9b91a4da (diff)
downloadgsoc2013-evolution-dafc74eeaf244b39d1fd0f8498d50d2535ca8bd9.tar
gsoc2013-evolution-dafc74eeaf244b39d1fd0f8498d50d2535ca8bd9.tar.gz
gsoc2013-evolution-dafc74eeaf244b39d1fd0f8498d50d2535ca8bd9.tar.bz2
gsoc2013-evolution-dafc74eeaf244b39d1fd0f8498d50d2535ca8bd9.tar.lz
gsoc2013-evolution-dafc74eeaf244b39d1fd0f8498d50d2535ca8bd9.tar.xz
gsoc2013-evolution-dafc74eeaf244b39d1fd0f8498d50d2535ca8bd9.tar.zst
gsoc2013-evolution-dafc74eeaf244b39d1fd0f8498d50d2535ca8bd9.zip
Setup the Empty Trash On Exit widgets.
2001-07-02 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (construct): Setup the Empty Trash On Exit widgets. * mail-config.c (config_read): Option to emtpy trash on exit. (mail_config_write_on_exit): Same. (mail_config_set_empty_trash_on_exit): Set the option. (mail_config_get_empty_trash_on_exit): Get the option. * component-factory.c (owner_unset_cb): Empty the trash folders if the user set the "empty trash on exit" option. svn path=/trunk/; revision=10711
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 149159faf6..10588c50cc 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -578,6 +578,9 @@ idle_quit (gpointer user_data)
static void
owner_unset_cb (EvolutionShellComponent *shell_component, gpointer user_data)
{
+ if (mail_config_get_empty_trash_on_exit ())
+ empty_trash (NULL, NULL, NULL);
+
unref_standard_folders ();
mail_importer_uninit ();