aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-10-24 05:38:27 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-10-24 05:38:27 +0800
commit46dd4414b9aae78bd569810238fa5106307a83eb (patch)
tree1faeeb36545100d83ee5133ede5859d19e59dfbf /widgets/misc
parent1f506e4a037e3bf7f6a193fc1cf14e642c392180 (diff)
downloadgsoc2013-evolution-46dd4414b9aae78bd569810238fa5106307a83eb.tar.gz
gsoc2013-evolution-46dd4414b9aae78bd569810238fa5106307a83eb.tar.zst
gsoc2013-evolution-46dd4414b9aae78bd569810238fa5106307a83eb.zip
clear the struct tm fields to keep purify happy.
2001-10-23 Damon Chaplin <damon@ximian.com> * e-dateedit.c (e_date_edit_check_date_changed): (e_date_edit_check_time_changed): clear the struct tm fields to keep purify happy. svn path=/trunk/; revision=13959
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/ChangeLog6
-rw-r--r--widgets/misc/e-dateedit.c11
2 files changed, 15 insertions, 2 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 3766e0e45f..2f061b66f1 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,9 @@
+2001-10-23 Damon Chaplin <damon@ximian.com>
+
+ * e-dateedit.c (e_date_edit_check_date_changed):
+ (e_date_edit_check_time_changed): clear the struct tm fields to keep
+ purify happy.
+
2001-10-22 Damon Chaplin <damon@ximian.com>
* e-cell-date-edit.c (e_cell_date_edit_set_popup_values):
diff --git a/widgets/misc/e-dateedit.c b/widgets/misc/e-dateedit.c
index 86cee024e2..ccc605980a 100644
--- a/widgets/misc/e-dateedit.c
+++ b/widgets/misc/e-dateedit.c
@@ -1685,10 +1685,14 @@ e_date_edit_check_date_changed (EDateEdit *dedit)
priv = dedit->priv;
+ tmp_tm.tm_year = 0;
+ tmp_tm.tm_mon = 0;
+ tmp_tm.tm_mday = 0;
+
date_text = gtk_entry_get_text (GTK_ENTRY (priv->date_entry));
- if (field_set_to_none (date_text))
+ if (field_set_to_none (date_text)) {
none = TRUE;
- else if (!e_date_edit_parse_date (dedit, date_text, &tmp_tm)) {
+ } else if (!e_date_edit_parse_date (dedit, date_text, &tmp_tm)) {
valid = FALSE;
tmp_tm.tm_year = 0;
tmp_tm.tm_mon = 0;
@@ -1719,6 +1723,9 @@ e_date_edit_check_time_changed (EDateEdit *dedit)
priv = dedit->priv;
+ tmp_tm.tm_hour = 0;
+ tmp_tm.tm_min = 0;
+
time_text = gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (priv->time_combo)->entry));
if (field_set_to_none (time_text))
none = TRUE;