aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-04-27 07:36:15 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-04-27 07:36:15 +0800
commit49c15eb9c91aee5f318aee040c72eca8bcf92253 (patch)
treeed8309a2743a54cd08b4a375f9982e0d07bdad3d /calendar
parent6722d22f5fba8217d396c0d8555bf78ffb0634e9 (diff)
downloadgsoc2013-evolution-49c15eb9c91aee5f318aee040c72eca8bcf92253.tar
gsoc2013-evolution-49c15eb9c91aee5f318aee040c72eca8bcf92253.tar.gz
gsoc2013-evolution-49c15eb9c91aee5f318aee040c72eca8bcf92253.tar.bz2
gsoc2013-evolution-49c15eb9c91aee5f318aee040c72eca8bcf92253.tar.lz
gsoc2013-evolution-49c15eb9c91aee5f318aee040c72eca8bcf92253.tar.xz
gsoc2013-evolution-49c15eb9c91aee5f318aee040c72eca8bcf92253.tar.zst
gsoc2013-evolution-49c15eb9c91aee5f318aee040c72eca8bcf92253.zip
Replace "<" by "<=" in the comparison for due dates against the current
2001-04-26 Federico Mena Quintero <federico@ximian.com> * gui/calendar-model.c (get_is_overdue): Replace "<" by "<=" in the comparison for due dates against the current time. This makes tasks appear immediately as red when you click Now in the due date popup field. This is not a complete solution to the more general problem of tasks staying the same color even if they become overdue while the task list remains the same on the screen. This has been logged as bug #2399. svn path=/trunk/; revision=9606
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog12
-rw-r--r--calendar/gui/alarm-notify/notify-main.c1
-rw-r--r--calendar/gui/calendar-model.c7
3 files changed, 17 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 108f241953..16343be8b2 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,15 @@
+2001-04-26 Federico Mena Quintero <federico@ximian.com>
+
+ * gui/calendar-model.c (get_is_overdue): Replace "<" by "<=" in
+ the comparison for due dates against the current time. This makes
+ tasks appear immediately as red when you click Now in the due date
+ popup field.
+
+ This is not a complete solution to the more general problem of
+ tasks staying the same color even if they become overdue while the
+ task list remains the same on the screen. This has been logged as
+ bug #2399.
+
2001-04-26 Ettore Perazzoli <ettore@ximian.com>
* gui/dialogs/Makefile.am (INCLUDES): Add `$(EXTRA_GNOME_CFLAGS)'.
diff --git a/calendar/gui/alarm-notify/notify-main.c b/calendar/gui/alarm-notify/notify-main.c
index 0fc6b48607..23d383384b 100644
--- a/calendar/gui/alarm-notify/notify-main.c
+++ b/calendar/gui/alarm-notify/notify-main.c
@@ -63,7 +63,6 @@ funny_trigger_cb (gpointer alarm_id, time_t trigger, gpointer data)
static void
funny_times_init (void)
{
- alarm_add ((time_t) 987654321L, funny_trigger_cb, NULL, NULL); /* Apr 19 04:25:21 2001 UTC */
alarm_add ((time_t) 999999999L, funny_trigger_cb, NULL, NULL); /* Sep 9 01:46:39 2001 UTC */
}
diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c
index f75499f4da..b9c11e16ef 100644
--- a/calendar/gui/calendar-model.c
+++ b/calendar/gui/calendar-model.c
@@ -603,11 +603,14 @@ get_is_overdue (CalComponent *comp)
goto out;
}
- /* Third, are we overdue as of right now? */
+ /* Third, are we overdue as of right now? We use <= in the
+ * comparison below so that the table entries change color
+ * immediately.
+ */
t = icaltime_as_timet (*dt.value);
- if (t < time (NULL))
+ if (t <= time (NULL))
retval = TRUE;
else
retval = FALSE;