summaryrefslogtreecommitdiff
path: root/src/apoint.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/apoint.c
parentedf3903ac840b1889b9bdd687965453a7e26b7ee (diff)
downloadcalcurse-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/apoint.c')
-rw-r--r--src/apoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apoint.c b/src/apoint.c
index a756fac..9b9257f 100644
--- a/src/apoint.c
+++ b/src/apoint.c
@@ -332,7 +332,7 @@ void apoint_update_panel(int which_pan)
{
int title_xpos;
int bordr = 1;
- int title_lines = 3;
+ int title_lines = conf.compact_panels ? 1 : 3;
int app_width = win[APP].w - bordr;
int app_length = win[APP].h - bordr - title_lines;
long date;