diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | calendar/conduits/todo/todo-conduit.c | 20 |
2 files changed, 12 insertions, 13 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 030ac6270d..ec86c60745 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2001-01-16 JP Rosevear <jpr@ximian.com> + + * conduits/todo/todo-conduit.c (print_local): fix debug output + (print_remote): ditto + 2001-01-15 JP Rosevear <jpr@ximian.com> * pcs/cal-backend.c (cal_backend_compute_changes): accomadate tasks diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c index 7d36dc5e10..07fe9f3122 100644 --- a/calendar/conduits/todo/todo-conduit.c +++ b/calendar/conduits/todo/todo-conduit.c @@ -78,13 +78,10 @@ print_local (EToDoLocalRecord *local) if (local->todo && local->todo->description) { g_snprintf (buff, 4096, "[%d %ld %d %d '%s' '%s']", - local->todo->indefinite ? - local->todo->indefinite : "", + local->todo->indefinite, mktime (& local->todo->due), - local->todo->priority ? - local->todo->priority : "", - local->todo->complete ? - local->todo->complete : "", + local->todo->priority, + local->todo->complete, local->todo->description ? local->todo->description : "", local->todo->note ? @@ -108,14 +105,11 @@ static char *print_remote (GnomePilotRecord *remote) memset (&todo, 0, sizeof (struct ToDo)); unpack_ToDo (&todo, remote->record, remote->length); - g_snprintf (buff, "[%d %ld %d %d '%s' '%s']", - todo.indefinite ? - todo.indefinite : "", + g_snprintf (buff, 4096, "[%d %ld %d %d '%s' '%s']", + todo.indefinite, mktime (&todo.due), - todo.priority ? - todo.priority : "", - todo.complete ? - todo.complete : "", + todo.priority, + todo.complete, todo.description ? todo.description : "", todo.note ? |