aboutsummaryrefslogtreecommitdiffstats
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLars Henriksen <LarsHenriksen@get2net.dk>2017-12-17 08:25:10 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2018-05-26 11:31:43 +0200
commitbb7381765c435ac37e133f7fcc14a07823539050 (patch)
treef0902c3c714dca97607000e464b52df37aa44e01 /src/calcurse.h
parenta5cc46cd550b335b0de6ce7658e0c1ca5068255e (diff)
downloadcalcurse-bb7381765c435ac37e133f7fcc14a07823539050.tar.gz
calcurse-bb7381765c435ac37e133f7fcc14a07823539050.zip
Scrollbar and right window border (corrected)
When a scrollbar is on display in APP or TOD windows, the right vertical border (outside the scrollbar) is not highlighted when the window is selected. The scrollbar is always highlighted: - when APP or TOD is deselected - in configuration windows where borders otherwise are not The patch moves the scrollbar parameters (except highlight) from arguments of draw_scrollbar() to the function itself. The highlight argument was 1; instead it is set higher in the call hierarchy (wins_update_panels()) and passed on down. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index bad10c9..7f403c4 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -170,6 +170,9 @@
/* Size of the hash table the note garbage collector uses. */
#define NOTE_GC_HSIZE 1024
+/* Mnemonics */
+#define NOHILT 0 /* 'No highlight' argument */
+
#define ERROR_MSG(...) do { \
char msg[BUFSIZ]; \
int len; \
@@ -908,7 +911,7 @@ void listbox_resize(struct listbox *, int, int, int, int);
void listbox_set_cb_data(struct listbox *, void *);
void listbox_load_items(struct listbox *, int);
void listbox_draw_deco(struct listbox *, int);
-void listbox_display(struct listbox *);
+void listbox_display(struct listbox *, int);
int listbox_get_sel(struct listbox *);
void listbox_set_sel(struct listbox *, unsigned);
void listbox_sel_move(struct listbox *, int);
@@ -1144,7 +1147,7 @@ long date_sec_change(long, int, int);
long update_time_in_date(long, unsigned, unsigned);
time_t get_sec_date(struct date);
long min2sec(unsigned);
-void draw_scrollbar(struct scrollwin *);
+void draw_scrollbar(struct scrollwin *, int);
void item_in_popup(const char *, const char *, const char *, const char *);
time_t get_today(void);
long now(void);
@@ -1236,7 +1239,7 @@ void wins_scrollwin_resize(struct scrollwin *, int, int, int, int);
void wins_scrollwin_set_linecount(struct scrollwin *, unsigned);
void wins_scrollwin_delete(struct scrollwin *);
void wins_scrollwin_draw_deco(struct scrollwin *, int);
-void wins_scrollwin_display(struct scrollwin *);
+void wins_scrollwin_display(struct scrollwin *, int);
void wins_scrollwin_up(struct scrollwin *, int);
void wins_scrollwin_down(struct scrollwin *, int);
int wins_scrollwin_is_visible(struct scrollwin *, unsigned);