aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-tag-followup.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-08-07 10:56:10 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-08-07 10:56:10 +0800
commitb446318dfa53347210444123d20433cc7829105a (patch)
tree928473cfb46370e46fe004d4cd69918203d1afa2 /mail/message-tag-followup.c
parent6916d03ad63e4a4b63f065ef2f445d51eb2bb224 (diff)
downloadgsoc2013-evolution-b446318dfa53347210444123d20433cc7829105a.tar
gsoc2013-evolution-b446318dfa53347210444123d20433cc7829105a.tar.gz
gsoc2013-evolution-b446318dfa53347210444123d20433cc7829105a.tar.bz2
gsoc2013-evolution-b446318dfa53347210444123d20433cc7829105a.tar.lz
gsoc2013-evolution-b446318dfa53347210444123d20433cc7829105a.tar.xz
gsoc2013-evolution-b446318dfa53347210444123d20433cc7829105a.tar.zst
gsoc2013-evolution-b446318dfa53347210444123d20433cc7829105a.zip
Set the week start day from the calendar prefs, do same for 24 hour
2002-08-07 Not Zed <NotZed@Ximian.com> * message-tag-followup.c (target_date_new): Set the week start day from the calendar prefs, do same for 24 hour format. See #23423. * mail-config.c (config_read): Added week_start_day from Calendar/Display config. Also time_24hour format. (mail_config_get_week_start_day): (mail_config_get_time_24hour): And read-only accessors. svn path=/trunk/; revision=17723
Diffstat (limited to 'mail/message-tag-followup.c')
-rw-r--r--mail/message-tag-followup.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/mail/message-tag-followup.c b/mail/message-tag-followup.c
index 4edbfc1d26..bee65fab6d 100644
--- a/mail/message-tag-followup.c
+++ b/mail/message-tag-followup.c
@@ -39,6 +39,7 @@
#include <gal/util/e-unicode-i18n.h>
#include "message-tag-followup.h"
+#include "mail-config.h"
static void message_tag_followup_class_init (MessageTagFollowUpClass *class);
static void message_tag_followup_init (MessageTagFollowUp *followup);
@@ -217,13 +218,16 @@ GtkWidget *
target_date_new (const char *s1, const char *s2, int i1, int i2)
{
GtkWidget *widget;
-
+ int start;
+
widget = e_date_edit_new ();
e_date_edit_set_show_date (E_DATE_EDIT (widget), TRUE);
e_date_edit_set_show_time (E_DATE_EDIT (widget), TRUE);
- e_date_edit_set_week_start_day (E_DATE_EDIT (widget), 6);
- /* FIXME: make this locale dependant?? */
- e_date_edit_set_use_24_hour_format (E_DATE_EDIT (widget), FALSE);
+
+ start = (mail_config_get_week_start_day()+6) % 7; /* Note that this is 0 (Sun) to 6 (Sat), conver to 0 (mon) to 6 (sun) */
+
+ e_date_edit_set_week_start_day (E_DATE_EDIT (widget), start);
+ e_date_edit_set_use_24_hour_format (E_DATE_EDIT (widget), mail_config_get_time_24hour());
e_date_edit_set_allow_no_date_set (E_DATE_EDIT (widget), TRUE);
e_date_edit_set_time_popup_range (E_DATE_EDIT (widget), 0, 24);