aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@novell.com>2010-04-16 05:16:44 +0800
committerFederico Mena Quintero <federico@novell.com>2010-04-16 05:16:44 +0800
commit61749c2f98eb15145791a2bc715e94317cdfd565 (patch)
tree522ded6867622f1d4844c6de4d898064334330fc /calendar/gui
parent9a890d74824c1cfdb55947a7251de4e9d8095246 (diff)
downloadgsoc2013-evolution-61749c2f98eb15145791a2bc715e94317cdfd565.tar.gz
gsoc2013-evolution-61749c2f98eb15145791a2bc715e94317cdfd565.tar.zst
gsoc2013-evolution-61749c2f98eb15145791a2bc715e94317cdfd565.zip
Hide some calendar preferences in Express mode
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/cal-prefs-dialog.c4
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 5baf22306c..7596133f78 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);