111 Commits

Author SHA1 Message Date
Lukas Fleischer
6c6c7d5ec0 Always work with new window dimensions on resize
This one came up after improving resizing behaviour in commit
fec37db06bbbdff79bc9816046a76e0b29e173b4. We used to use outdated width
and height values at various places without noticing it due to the
resize algorithm being called several times on every resize.

This patch ensures we retrieve the new window dimensions *before* doing
any layout calculations.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-06-28 18:27:52 +02:00
Lukas Fleischer
fec37db06b Avoid redundant redraws on resize
Use a global flag to record whether the terminal was resized instead of
redrawing everything each time a KEY_RESIZE is read.

Add some additional checks to help_write_pad() as invalid actions may be
passed now due to using signals instead of virtual key presses.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-06-28 18:22:43 +02:00
Lukas Fleischer
38865b8e48 Update copyright notices in source files, documentation and "COPYING".
* 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>
2011-04-22 07:26:05 +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
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
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
91c9cac898 Remove CVS "$Id" headers.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-03 16:19:45 +01:00
Lukas Fleischer
56b9cbcb84 Fixed file permissions. 2011-03-03 12:21:16 +01:00
Frederic Culot
b4dcd1c38f Exit menu item added to sidebar configuration screen (thanks Doug for reporting this). 2010-03-29 07:37:16 +00:00
Frederic Culot
b6f84b3ef9 Online help added for side bar configuration screen. 2010-03-21 12:21:11 +00:00
Frederic Culot
6892b59622 Avoid concurrent screen refreshes. 2010-03-21 10:17:03 +00:00
Frederic Culot
cc77e839d8 More work on sidebar customization. 2010-03-21 09:21:06 +00:00
Frederic Culot
ec36b96848 Work on sidebar width user-customization. 2010-03-20 13:29:47 +00:00
Frederic Culot
a8cb1c92ef All headers gathered into a single one. Typedefs suppressed. 2010-03-20 10:54:41 +00:00
Frederic Culot
758d5ff035 Code to save the calendar default view in the configuration file. 2009-10-28 15:15:43 +00:00
Frederic Culot
d6b7f83e58 conf_set_scrsize not static any more (moved to custom_set_swsiz) 2009-08-02 09:29:24 +00:00
Frederic Culot
989b6c885f Save and restore daemon configuration options. 2009-08-01 17:44:51 +00:00
Frederic Culot
35e4aa61c7 bugfixes 2009-07-29 18:20:54 +00:00
Frederic Culot
976159fa56 calcurse version removed from menu titles 2009-07-12 17:55:13 +00:00
Frederic Culot
5694955002 stdbool header removed, unsigned type used instead 2009-07-12 16:21:57 +00:00
Frederic Culot
27b25548a4 Switch to BSD license. 2009-07-05 20:33:13 +00:00
Frederic Culot
78c0495587 Bugfix: avoid a possible freeze under OpenBSD when changing color from within the configuration screen. 2009-06-20 10:41:11 +00:00
Frederic Culot
c8a1b72027 make it possible to use KEY_HOME and KEY_END to define new key bindings, and prevent user from assigning a non-recgnized key 2009-01-24 14:44:09 +00:00
Frederic Culot
38912b36da iso date format added 2009-01-05 20:12:08 +00:00
Frederic Culot
936b6fe373 more code cleanup 2009-01-03 21:32:10 +00:00
Frederic Culot
bf3bce0ab2 code cleanup 2009-01-02 22:28:53 +00:00
Frederic Culot
8fdd1510c6 Automatic periodic saves implemented 2008-12-28 19:41:45 +00:00
Frederic Culot
5352496984 Added wrappers around libc's memory management functions, to easily debug memory usage 2008-12-28 13:13:58 +00:00
Frederic Culot
d54dd2ee73 new layout configuration menu 2008-12-20 19:27:31 +00:00
Frederic Culot
65ec1bb0fa small bugfixes and code cleanup 2008-12-14 15:54:50 +00:00
Frederic Culot
7ff22e9b3f color configuration menu adapted to handle user-defined key bindings 2008-12-08 19:17:06 +00:00
Frederic Culot
639058740a Checks added while loading key bindings configuration. 2008-12-07 09:20:38 +00:00
Frederic Culot
910901a4f0 User-defined keys are now saved to file. 2008-11-25 20:48:58 +00:00
Frederic Culot
eb88eaecb3 Building configuration menu to assign keybindings 2008-11-23 20:38:55 +00:00
Frederic Culot
9d4899110a More work on implementing user-definable keybindings 2008-11-16 17:42:53 +00:00
Frederic Culot
e8f12c65ca Loading of user-configurable keys implemented 2008-11-09 20:10:18 +00:00
Frederic Culot
7ddfcccee0 import flag and 'i' keybinding added 2008-09-21 08:05:52 +00:00
Frederic Culot
2341c90003 some memory leaks fixed using valgrind and some minor code cleanup 2008-04-19 21:04:47 +00:00
Frederic Culot
2e798df3cb Scrollbar added in general configuration menu 2008-04-19 09:22:14 +00:00
Frederic Culot
efd782699b Yet another style for source code. GNU style now used (I am fed up with tabs...) 2008-04-12 21:14:03 +00:00
Frederic Culot
0c281d2c1e Tony's patch concerning date format configuration imported 2008-04-09 20:38:29 +00:00
Frederic Culot
45d7e1e131 bugfix: check for null pointer added when drawing color configuration window (which could remain invisible otherwise) 2008-02-16 13:14:04 +00:00
Frederic Culot
b15bd94178 custom_general_config() updated to handle basic window resizing
custom_confwin_init() and display_color_config() added
custom_color_config() rewritten
2007-10-21 13:41:02 +00:00
Frederic Culot
e5eed3759b layout_config() updated to use wins_set_layout() 2007-08-15 15:37:53 +00:00
Frederic Culot
4b987f70ac unuseful headers removed and some functions became static 2007-07-28 13:11:42 +00:00
Frederic Culot
792b62c173 no more window erase in custom_load_conf()
custom_print_general_options() and custom_general_config() added
2007-07-21 19:34:07 +00:00
Frederic Culot
155c4c3f8e custom_load_conf() and erase_window_part() updated to use window_t type 2007-07-20 19:14:33 +00:00
Frederic Culot
694d3ec32b call to calendar_set_first_day_of_week() added 2007-07-01 17:59:14 +00:00