aboutsummaryrefslogtreecommitdiffstats
path: root/src/day.c
Commit message (Collapse)AuthorAgeFilesLines
* Do not try to display items with negative widthLukas Fleischer2011-06-281-0/+3
| | | | | | | Don't display anything rather than segfault if the appointment panel becomes too small (e.g. during a terminal resize). Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Update copyright notices in source files, documentation and "COPYING".Lukas Fleischer2011-04-221-1/+1
| | | | | | | | | * Update copyright dates (use 2004-2011 as date range everywhere). * Change copyright holder from "Frederic Culot" to "calcurse Development Team". Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Return -1 in io_file_is_empty() if file cannot be accessed.Lukas Fleischer2011-04-221-1/+1
| | | | | | | Ensure files don't appear as empty if fopen() fails (e.g. on temporary EACCES failures). Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Use generic lists for recurring apointments and events.Lukas Fleischer2011-04-191-56/+40
| | | | | | | | Use them instead of "recur_apoint_list" and "next" pointers in "recur_event" type variables. Includes some code simplifications and cleanups. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Use generic lists for generic day items.Lukas Fleischer2011-04-191-100/+88
| | | | | | | Use the new generic list implementation instead of "next" pointers in day_item type variables. Includes some cleanups and fixes. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Use generic lists for events.Lukas Fleischer2011-04-191-11/+7
| | | | | | | Use the new generic list implementation instead of those insane "next" pointers in events. Includes some cleanups. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Use generic lists for appointments.Lukas Fleischer2011-04-191-35/+30
| | | | | | | Use the new generic list implementation instead of "apoint_list" everywhere. Simplify stuff and drop unused variables as well. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Drop empty notes after editing.Lukas Fleischer2011-04-121-0/+3
| | | | | | | | | Keeping empty notes doesn't make sense here. Also, there doesn't seem to be a simple way to erase notes yet. This will make calcurse delete any notes that are empty (meaning that they are either 0-byte files or contain nothing but a newline character) when returning from the editor. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Compare pointers to "NULL" instead of "0".Lukas Fleischer2011-04-051-14/+14
| | | | | | "bad_zero.cocci" spatch from http://coccinelle.lip6.fr/impact_linux.php. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Remove dead assignments spotted by clang-analyzer.Lukas Fleischer2011-04-031-13/+5
| | | | Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Overall indentation fixes.Lukas Fleischer2011-03-141-272/+272
| | | | | | | Use spaces instead of tabs for source code indentation only, strip trailing whitespaces from lines. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Update website links to match the new URL.Lukas Fleischer2011-03-041-1/+1
| | | | Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Update mail addresses to match the new mailing lists.Lukas Fleischer2011-03-041-1/+1
| | | | Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Remove date_sec2hour_str() from "utils.c".Lukas Fleischer2011-03-041-1/+1
| | | | | | | | date_sec2hour_str() is superseded by date_sec2date_str() with "%H:%M" as date format string, so replace all invocations and remove that function from "utils.c". Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Remove CVS "$Id" headers.Lukas Fleischer2011-03-031-2/+0
| | | | Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
* Fixed file permissions.Lukas Fleischer2011-03-031-0/+0
|
* Make parse_date accept several short forms.Lukas Fleischer2011-01-111-2/+2
| | | | | | | | | Short forms are only accepted in interactive mode (e.g. when using the "Go to" function, editing a recurrent item's end date, and so on). Samples: "1/1/30" for "01/01/2030", "26" for the 26th of the currently selected month/year or "3/1" for Mar 01 (or Jan 03, depending on the date format) of the currently selected year.
* All headers gathered into a single one. Typedefs suppressed.Frederic Culot2010-03-201-64/+66
|
* Bugfix in the way time slices are filled.Frederic Culot2009-10-161-5/+11
|
* More work on the weekly calendar view.Frederic Culot2009-10-081-1/+66
|
* stdbool header removed, unsigned type used insteadFrederic Culot2009-07-121-5/+5
|
* Switch to BSD license.Frederic Culot2009-07-051-14/+26
|
* more code cleanupFrederic Culot2009-01-031-51/+34
|
* code cleanupFrederic Culot2009-01-021-10/+10
|
* various bugfixesFrederic Culot2009-01-021-3/+3
|
* cut/paste feature adedFrederic Culot2009-01-011-4/+70
| | | | | fixed a 2-years old bug that made repeated items with exceptions to load uncorrectly in some cases (thanks Jan for reporting it)
* Automatic periodic saves implementedFrederic Culot2008-12-281-2/+2
|
* Added wrappers around libc's memory management functions, to easily debug ↵Frederic Culot2008-12-281-38/+53
| | | | memory usage
* small bugfixes and a major one (freeze when deleting an appointment's note, ↵Frederic Culot2008-12-151-4/+8
| | | | thanks Jan for reporting it)
* code cleanupFrederic Culot2008-12-121-4/+2
|
* color configuration menu adapted to handle user-defined key bindingsFrederic Culot2008-12-081-7/+7
|
* Checks added while loading key bindings configuration.Frederic Culot2008-12-071-11/+11
|
* More work on implementing user-definable keybindingsFrederic Culot2008-11-161-17/+18
|
* some memory leaks fixed using valgrind and some minor code cleanupFrederic Culot2008-04-191-6/+3
|
* Yet another style for source code. GNU style now used (I am fed up with tabs...)Frederic Culot2008-04-121-685/+747
|
* Tony's patch concerning date format configuration importedFrederic Culot2008-04-091-16/+18
|
* Code parts related to item update rewrittenFrederic Culot2008-01-201-215/+231
|
* minor improvements and bugfixesFrederic Culot2008-01-171-11/+16
|
* Ability to attach notes to appointments and events addedFrederic Culot2008-01-131-56/+151
|
* Ability to attach notes to todo items addedFrederic Culot2007-12-301-8/+66
|
* routines updated to handle new window_t and window_e typesFrederic Culot2007-10-211-15/+15
|
* day_edit_item() updated to use apoint_hilt()Frederic Culot2007-08-151-2/+4
|
* memory leak fixed in day_item_s2apoint_s()Frederic Culot2007-08-041-14/+8
|
* error handling while in ncurses mode improvedFrederic Culot2007-08-041-5/+4
|
* compiler warnings fixedFrederic Culot2007-07-291-3/+3
|
* unuseful headers removed and some functions became staticFrederic Culot2007-07-281-198/+201
|
* day_process_storage() addedFrederic Culot2007-07-201-1/+36
|
* day_edit_item() and day_check_if_item() prototype updatedFrederic Culot2007-07-011-8/+11
|
* bugfix: item ending time is now assigned to correct day in day_edit_item()Frederic Culot2007-05-061-10/+6
|
* MAX_LENGTH replaced by stdio.h's BUFSIZFrederic Culot2007-04-041-5/+6
|