[evolution/express2] Hide some calendar preferences in Express mode



commit 61749c2f98eb15145791a2bc715e94317cdfd565
Author: Federico Mena Quintero <federico novell com>
Date:   Thu Apr 15 16:16:44 2010 -0500

    Hide some calendar preferences in Express mode
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 calendar/gui/dialogs/cal-prefs-dialog.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c
index 5baf223..7596133 100644
--- a/calendar/gui/dialogs/cal-prefs-dialog.c
+++ b/calendar/gui/dialogs/cal-prefs-dialog.c
@@ -36,6 +36,7 @@
 #include "e-util/e-datetime-format.h"
 #include "e-util/e-dialog-widgets.h"
 #include "e-util/e-util-private.h"
+#include "shell/e-shell-utils.h"
 #include <glib/gi18n.h>
 #include <string.h>
 
@@ -785,6 +786,9 @@ calendar_prefs_dialog_construct (CalendarPrefsDialog *prefs,
 	e_datetime_format_add_setup_widget (table, 0, "calendar", "table",  DTFormatKindDateTime, _("Time and date:"));
 	e_datetime_format_add_setup_widget (table, 1, "calendar", "table",  DTFormatKindDate, _("Date only:"));
 
+	/* Hide senseless preferences when running in Express mode */
+	e_shell_hide_widgets_for_express_mode (shell, prefs->builder, "/apps/evolution/calendar/express_preferences_hidden");
+
 	show_config (prefs);
 	/* FIXME: weakref? */
 	setup_changes (prefs);



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