diff options
author | Milan Crha <mcrha@redhat.com> | 2009-02-25 18:44:12 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2009-02-25 18:44:12 +0800 |
commit | 82d5ac92dacbd76fa446f3115866b56da730f0ec (patch) | |
tree | 729fe05a2eb61a7fd55a9268c32044250aa7dca9 /widgets/misc/e-dateedit.c | |
parent | 9b965c07677ae03ef282163bdc8a0a270aececb0 (diff) | |
download | gsoc2013-evolution-82d5ac92dacbd76fa446f3115866b56da730f0ec.tar.gz gsoc2013-evolution-82d5ac92dacbd76fa446f3115866b56da730f0ec.tar.zst gsoc2013-evolution-82d5ac92dacbd76fa446f3115866b56da730f0ec.zip |
** Fix for bug #559027
2009-02-25 Milan Crha <mcrha@redhat.com>
** Fix for bug #559027
* e-dateedit.c: (on_date_entry_focus_out):
Do not set date for 'None' value.
svn path=/trunk/; revision=37323
Diffstat (limited to 'widgets/misc/e-dateedit.c')
-rw-r--r-- | widgets/misc/e-dateedit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/misc/e-dateedit.c b/widgets/misc/e-dateedit.c index fabc6aa614..5bb175aad2 100644 --- a/widgets/misc/e-dateedit.c +++ b/widgets/misc/e-dateedit.c @@ -1639,9 +1639,11 @@ on_date_entry_focus_out (GtkEntry *entry, e_date_edit_set_date (dedit,tmp_tm.tm_year,tmp_tm.tm_mon,tmp_tm.tm_mday); gtk_widget_grab_focus (GTK_WIDGET (entry)); return FALSE; - } else { - e_date_edit_get_date (dedit,&tmp_tm.tm_year,&tmp_tm.tm_mon,&tmp_tm.tm_mday); + } else if (e_date_edit_get_date (dedit,&tmp_tm.tm_year,&tmp_tm.tm_mon,&tmp_tm.tm_mday)) { e_date_edit_set_date (dedit,tmp_tm.tm_year,tmp_tm.tm_mon,tmp_tm.tm_mday); + } else { + dedit->priv->date_set_to_none = TRUE; + e_date_edit_update_date_entry (dedit); } return FALSE; } |