[evolution/express-reduced-preferences: 2/6] Hide widgets for the mailer's preferences in Express mode



commit c5b33c7be5feb8e61cb1301e8441e8509dbd1449
Author: Federico Mena Quintero <federico novell com>
Date:   Wed Apr 7 15:26:12 2010 -0500

    Hide widgets for the mailer's preferences in Express mode
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 modules/mail/em-mailer-prefs.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/modules/mail/em-mailer-prefs.c b/modules/mail/em-mailer-prefs.c
index fb34805..e3c7dc5 100644
--- a/modules/mail/em-mailer-prefs.c
+++ b/modules/mail/em-mailer-prefs.c
@@ -42,6 +42,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"
@@ -1205,6 +1206,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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]