aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-dateedit.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2007-11-05 18:45:03 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-11-05 18:45:03 +0800
commit58338b08f3a880320bed171256850d326b895c23 (patch)
tree65a82b122919d410f33cab1b5e230a88c78759c4 /widgets/misc/e-dateedit.c
parent319df4d63875c9e9039acd7091cf48625187ef68 (diff)
downloadgsoc2013-evolution-58338b08f3a880320bed171256850d326b895c23.tar.gz
gsoc2013-evolution-58338b08f3a880320bed171256850d326b895c23.tar.zst
gsoc2013-evolution-58338b08f3a880320bed171256850d326b895c23.zip
** Fix for bug #351932
2007-11-05 Milan Crha <mcrha@redhat.com> ** Fix for bug #351932 * widgets/misc/e-dateedit.h: (e_date_edit_have_time): * widgets/misc/e-dateedit.c: (e_date_edit_have_time): Extend API to be able to check if time is set independently of date part. * calendar/gui/dialogs/task-page.c: (check_start_before_end), (times_updated), (start_date_changed_cb), (due_date_changed_cb), (init_widgets): Ensure due date is not before start date. svn path=/trunk/; revision=34500
Diffstat (limited to 'widgets/misc/e-dateedit.c')
-rw-r--r--widgets/misc/e-dateedit.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/widgets/misc/e-dateedit.c b/widgets/misc/e-dateedit.c
index d1598074e7..c5399d8637 100644
--- a/widgets/misc/e-dateedit.c
+++ b/widgets/misc/e-dateedit.c
@@ -1953,6 +1953,20 @@ e_date_edit_time_is_valid (EDateEdit *dedit)
return TRUE;
}
+/**
+ * e_date_edit_have_time
+ * Check if time is set, i.e. it isn't 'None'/empty. Date can be set in this case.
+ *
+ * @param dedit an EDateEdit widget.
+ * @return TRUE is time is set, FALSE otherwise.
+ **/
+gboolean
+e_date_edit_have_time (EDateEdit *dedit)
+{
+ g_return_val_if_fail (dedit != NULL, FALSE);
+
+ return !dedit->priv->date_set_to_none && !dedit->priv->time_set_to_none;
+}
static gboolean
e_date_edit_set_date_internal (EDateEdit *dedit,