(widget_selectcolor): constify argument.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2023-06-18 12:48:29 +03:00
parent 28dd27875e
commit d243d467a8
2 changed files with 2 additions and 2 deletions

View File

@ -457,7 +457,7 @@ widget_set_size_rect (Widget * w, WRect * r)
/* --------------------------------------------------------------------------------------------- */
void
widget_selectcolor (Widget * w, gboolean focused, gboolean hotkey)
widget_selectcolor (const Widget * w, gboolean focused, gboolean hotkey)
{
int color;
const int *colors;

View File

@ -213,7 +213,7 @@ void widget_adjust_position (widget_pos_flags_t pos_flags, WRect * r);
void widget_set_size (Widget * w, int y, int x, int lines, int cols);
void widget_set_size_rect (Widget * w, WRect * r);
/* select color for widget in dependence of state */
void widget_selectcolor (Widget * w, gboolean focused, gboolean hotkey);
void widget_selectcolor (const Widget * w, gboolean focused, gboolean hotkey);
cb_ret_t widget_draw (Widget * w);
void widget_erase (Widget * w);
void widget_set_visibility (Widget * w, gboolean make_visible);