aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-11-25 10:47:47 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-11-25 18:33:29 +0100
commit4d0c095947ed30d4f32e6db27eddbc4719fbcf9b (patch)
tree1f8d4a305fc0e80ee0801a2b8fa8f65699a868d6 /src/config.c
parentedf3903ac840b1889b9bdd687965453a7e26b7ee (diff)
downloadcalcurse-4d0c095947ed30d4f32e6db27eddbc4719fbcf9b.tar.gz
calcurse-4d0c095947ed30d4f32e6db27eddbc4719fbcf9b.zip
Add compact panels support
Add a configuration option that allows for switching to compact panel mode. In this mode, all window labels are hidden, so that there's more space for actual information. This patch doesn't add a configuration menu entry and doesn't add any documentation. Implements FR#7. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index c601336..da562b2 100644
--- a/src/config.c
+++ b/src/config.c
@@ -86,6 +86,7 @@ static int config_serialize_input_datefmt(char *, void *);
static const struct confvar confmap[] = {
{"appearance.calendarview", config_parse_calendar_view,
config_serialize_calendar_view, NULL},
+ {"appearance.compactpanels", CONFIG_HANDLER_BOOL(conf.compact_panels)},
{"appearance.defaultpanel", config_parse_default_panel,
config_serialize_default_panel, NULL},
{"appearance.layout", config_parse_layout, config_serialize_layout, NULL},