diff options
author | Lars Henriksen <LarsHenriksen@get2net.dk> | 2019-05-28 20:43:12 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2019-05-28 17:57:44 -0400 |
commit | 7e0274bc08d483fa224540deae416f1e8c12dcbe (patch) | |
tree | f6ee19a4660eae64bf29b76f22f514184f735b70 | |
parent | 378db90adad6c502342459d8502b4fd9c614e45f (diff) | |
download | calcurse-7e0274bc08d483fa224540deae416f1e8c12dcbe.tar.gz calcurse-7e0274bc08d483fa224540deae416f1e8c12dcbe.zip |
Remove appointments panel scrollbar in multiple days mode
A scrollbar gives the impression of a fixed list. But the list on
display is automatically and silently changed as needed for movements in
the panel or the calendar, thus creating the illusion of an endless
list.
Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r-- | src/utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c index c04c0a6..0acad9f 100644 --- a/src/utils.c +++ b/src/utils.c @@ -631,9 +631,13 @@ long min2sec(unsigned minutes) /* * Display a scroll bar when there are so many items that they * can not be displayed inside the corresponding panel. + * Leave it out in the appointments panel in when multiple days mode. */ void draw_scrollbar(struct scrollwin *sw, int hilt) { + if (sw == &lb_apt.sw && conf.multiple_days) + return; + int y = (conf.compact_panels ? 1 : 3); int h = sw->h - (conf.compact_panels ? 2 : 4); |