aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@novell.com>2010-04-08 04:26:12 +0800
committerFederico Mena Quintero <federico@novell.com>2010-04-09 06:48:10 +0800
commit2a702140f1a9c6396b33adc9fb276b1d1d0e91c8 (patch)
tree353937ccc545df9b700414f0071a424b7941db06 /modules/mail
parentfe8eabe6d710b846ab9d2d95dcf60ed3de9e51ba (diff)
downloadgsoc2013-evolution-2a702140f1a9c6396b33adc9fb276b1d1d0e91c8.tar.gz
gsoc2013-evolution-2a702140f1a9c6396b33adc9fb276b1d1d0e91c8.tar.zst
gsoc2013-evolution-2a702140f1a9c6396b33adc9fb276b1d1d0e91c8.zip
Hide widgets for the mailer's preferences in Express mode
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Diffstat (limited to 'modules/mail')
-rw-r--r--modules/mail/em-mailer-prefs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/mail/em-mailer-prefs.c b/modules/mail/em-mailer-prefs.c
index f32fbbf284..e2605c8ff5 100644
--- a/modules/mail/em-mailer-prefs.c
+++ b/modules/mail/em-mailer-prefs.c
@@ -43,6 +43,7 @@
#include "e-util/e-datetime-format.h"
#include "e-util/e-util-private.h"
#include "widgets/misc/e-charset-combo-box.h"
+#include "shell/e-shell-utils.h"
#include "e-mail-label-manager.h"
#include "mail-config.h"
@@ -1206,6 +1207,9 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs,
g_signal_connect (G_OBJECT (prefs->junk_header_add), "clicked", G_CALLBACK (jh_add_cb), prefs);
g_signal_connect (G_OBJECT (prefs->junk_header_remove), "clicked", G_CALLBACK (jh_remove_cb), prefs);
+ /* Sanitize the dialog for Express mode */
+ e_shell_hide_widgets_for_express_mode (shell, prefs->builder, "/apps/evolution/mail/express_preferences_hidden");
+
/* get our toplevel widget */
target = em_config_target_new_prefs(ec, prefs->gconf);
e_config_set_target((EConfig *)ec, (EConfigTarget *)target);