(hotkey_draw): constify argument.

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

View File

@ -262,7 +262,7 @@ hotkey_equal (const hotkey_t hotkey1, const hotkey_t hotkey2)
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
void void
hotkey_draw (Widget * w, const hotkey_t hotkey, gboolean focused) hotkey_draw (const Widget * w, const hotkey_t hotkey, gboolean focused)
{ {
if (hotkey.start[0] != '\0') if (hotkey.start[0] != '\0')
{ {

View File

@ -198,7 +198,7 @@ int hotkey_width (const hotkey_t hotkey);
/* compare two hotkeys */ /* compare two hotkeys */
gboolean hotkey_equal (const hotkey_t hotkey1, const hotkey_t hotkey2); gboolean hotkey_equal (const hotkey_t hotkey1, const hotkey_t hotkey2);
/* draw hotkey of widget */ /* draw hotkey of widget */
void hotkey_draw (Widget * w, const hotkey_t hotkey, gboolean focused); void hotkey_draw (const Widget * w, const hotkey_t hotkey, gboolean focused);
/* get text of hotkey */ /* get text of hotkey */
char *hotkey_get_text (const hotkey_t hotkey); char *hotkey_get_text (const hotkey_t hotkey);