881 Commits

Author SHA1 Message Date
Lukas Fleischer
1140feaabf Update and cleanup ".gitignore".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-11 10:56:14 +02:00
Lukas Fleischer
df972cd45d Add more detailed instructions on tx push usage to documentation.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-11 10:50:43 +02:00
Lukas Fleischer
5f462f04ed Add base transifex-client configuration file.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-11 10:05:47 +02:00
Lukas Fleischer
ba651cf0a0 Use HTTPs for tx(1) samples in the documentation.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-11 10:01:05 +02:00
Lukas Fleischer
09231785f2 Update portable object files.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-10 18:02:33 +02:00
Lukas Fleischer
76b61faa67 Update "calcurse.pot".
Renegerate the catalog file with our new xgettext options. Drop line
numbers.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-10 18:00:18 +02:00
Lukas Fleischer
ad293b6a2e Add "--no-location" to xgettext options.
Disable line numbers in portable object files. They are not very useful
and generate a lot of junk on every update, hiding the actual changes.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-10 17:57:33 +02:00
Lukas Fleischer
af8b868a15 Fix Transifex resource slug in documentation.
The slug of the "calcurse.pot" resource has been changed from
"calcurse-pot" to "calcursepot" for consistency reasons. Update the
documentation where necessary.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-10 17:34:16 +02:00
Lukas Fleischer
a5a9ee60d6 Fix bad use of unsigned integers.
Unsigned values should never be compared to values less than zero.
Detected with "find_unsigned.cocci" spatch from
http://coccinelle.lip6.fr/impact_linux.php.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-05 09:37:20 +02:00
Lukas Fleischer
6fb0f6f4c6 Compare pointers to "NULL" instead of "0".
"bad_zero.cocci" spatch from http://coccinelle.lip6.fr/impact_linux.php.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-05 09:27:04 +02:00
Lukas Fleischer
c4c7c8af5d Remove unused variables from wins_show().
Seen with "-Wunused-but-set-variable".

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-03 22:09:15 +02:00
Lukas Fleischer
5b12c236cf Remove dead assignments spotted by clang-analyzer.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-03 22:09:00 +02:00
Lukas Fleischer
1473145d10 Avoid assignment of undefined value in parse_date().
Spotted by clang-analyzer ("Assigned value is garbage or undefined").

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-03 21:31:32 +02:00
Erik Saule
6ff9523876 ignore the lock file if the pointed process is dead.
Lukas: Small formatting and logic changes.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-29 10:35:14 +02:00
Lukas Fleischer
def487d741 Update translation help in the manual.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-15 16:02:57 +01:00
Lukas Fleischer
ad6ea3287d Add note on dropped translations to the manual.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-15 12:00:40 +01:00
Lukas Fleischer
84d1daf41d Try to stick to the GNU coding standards for the sake of consistency.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-15 10:52:38 +01:00
Lukas Fleischer
d6e5347340 Use upper case for macro names.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-15 10:23:41 +01:00
Lukas Fleischer
b9fa5bdbb1 Remove "ChangeLog".
After some discussions on the mailing lists, we decided to remove the
GNU-style ChangeLog, as turned out to be very inconvenient. Also, it
merely is a replication of the Git log. If you need a similar ChangeLog,
use `git log` (or `git log --stats`) instead.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-14 20:16:50 +01:00
Lukas Fleischer
9c9fd5da15 Overall indentation fixes.
Use spaces instead of tabs for source code indentation only, strip
trailing whitespaces from lines.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-14 19:03:53 +01:00
Lukas Fleischer
55262a3074 Add russian translation.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-13 13:17:09 +01:00
Lukas Fleischer
2030a0563c Parse appointment end times correctly if they date back.
End times used to be parsed incorrectly if start and end time's hour
components were equal, but the end time was smaller than the start time.
This is fixed by comparing the minute components as well in case of
equal hour components.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-13 12:57:55 +01:00
Lukas Fleischer
0e5a9f1620 Clean up updatestring() in "utils.c".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-05 17:49:27 +01:00
Lukas Fleischer
a778706791 Simplify date_sec2date_fmt() in "utils.c".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-05 17:30:35 +01:00
Lukas Fleischer
6f425dc1fa Clean up and simplify line editing functions.
This greatly simplifies all line editing functions - especially
getstring() and showstring(). showcursor() is removed and integrated
into showstring(). del_char() and add_char() are simplified as well.
add_char() is renamed to ins_char().

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-05 17:18:21 +01:00
Lukas Fleischer
355687b644 Ensure key descriptions in status bar are always null-terminated.
Key descriptions are just strncpy()'ed to key[], with KEYS_KEYLEN as
maximum character count. This leads to a non-null-terminated string if
the source pointer actually points to a string with a length of
KEYS_KEYLEN bytes. Always appending a null character fixes this.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-05 15:39:01 +01:00
Lukas Fleischer
9dad482ad8 Remove unnecessary casting variables from get_item_{hour,min}().
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 14:36:48 +01:00
Lukas Fleischer
81584e77f8 Fix mail address of release announcement list.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 11:40:17 +01:00
Lukas Fleischer
c22dcaf6be Update website links to match the new URL.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 11:07:49 +01:00
Lukas Fleischer
73e9649387 Update mail addresses to match the new mailing lists.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 11:07:40 +01:00
Lukas Fleischer
30da37addd Reformat "src/Makefile.am".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 10:15:03 +01:00
Lukas Fleischer
d42d07ef69 Simplify date_sec2date_str() in "utils.c".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 10:12:27 +01:00
Lukas Fleischer
fdcfd74823 Remove date_sec2hour_str() from "utils.c".
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>
2011-03-04 10:08:02 +01:00
Lukas Fleischer
082e7d4b98 Simplify date2sec() in "utils.c".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 10:01:23 +01:00
Lukas Fleischer
8b34a0e0fd Simplify check_time() in "utils.c".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 09:51:04 +01:00
Lukas Fleischer
0d12a788ad Simplify print_in_middle() in "utils.c".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 09:28:18 +01:00
Lukas Fleischer
4b8558ed47 Reformat erase_window_part() in "utils.c".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 09:21:08 +01:00
Lukas Fleischer
65fb1ff8b1 Simplify get_item_hour() and get_item_min() in "utils.c".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 09:17:21 +01:00
Lukas Fleischer
061f74108b Simplify str_toupper() in "utils.c".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 08:54:01 +01:00
Lukas Fleischer
05900b62e9 Simplify file_close() in "utils.c".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 08:46:04 +01:00
Lukas Fleischer
1fc9c69e43 Simplify now() and nowstr() in "utils.c".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 08:43:37 +01:00
Lukas Fleischer
aaa000cd5a Convert man page to AsciiDoc.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-03 18:53:31 +01:00
Lukas Fleischer
91c9cac898 Remove CVS "$Id" headers.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-03 16:19:45 +01:00
Lukas Fleischer
012e446194 Quick fix for "autogen.sh" version comparison breakage.
The autogen script failed to compare program versions properly printing
error messages like "./autogen.sh: line 107: [: too many arguments" to
stderr. This commit adds a hacky fix. To fix this properly,
check_program_version() should be rewritten from scratch.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-03 15:19:55 +01:00
Lukas Fleischer
ea44597a5a Add "ABOUT-NLS" to clean_old_files() in "autogen.sh".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-03 14:51:09 +01:00
Lukas Fleischer
a66be4604b Replace tabs by spaces in "autogen.sh".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-03 14:50:00 +01:00
Lukas Fleischer
8710680bd3 Add "COPYING" file.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-03 12:21:25 +01:00
Lukas Fleischer
b6294ce68c Fix references in "doc/manual.txt".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-03 12:21:25 +01:00
Lukas Fleischer
6a6d4a0c61 Add ".gitignore".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-03 12:21:25 +01:00
Lukas Fleischer
3e15efe917 Convert documentation to AsciiDoc, delete translations. 2011-03-03 12:21:25 +01:00