Skip to content

Commit

Permalink
allow browser deselect
Browse files Browse the repository at this point in the history
  • Loading branch information
MoAlyousef committed Jun 11, 2024
1 parent 7379ece commit 303495e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/cfl_browser.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ extern "C" {
void widget##_clear(widget *); \
int widget##_size(const widget *); \
int widget##_select(widget *, int line); \
int widget##_select_ext(widget *, int line, int val); \
int widget##_selected(const widget *, int line); \
const char *widget##_text(const widget *, int line); \
void widget##_set_text(widget *, int line, const char *newtext); \
Expand Down
4 changes: 4 additions & 0 deletions src/cfl_browser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
LOCK(auto ret = self->select(line)); \
return ret; \
} \
int widget##_select_ext(widget *self, int line, int val) { \
LOCK(auto ret = self->select(line, val)); \
return ret; \
} \
int widget##_selected(const widget *self, int line) { \
LOCK(auto ret = self->selected(line)); \
return ret; \
Expand Down

0 comments on commit 303495e

Please sign in to comment.