Make TXT_NewButton parameter const

This commit is contained in:
Turo Lamminen 2018-03-06 18:54:45 +02:00
parent 44b80b2a7a
commit 4b48cd7f9d
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ void TXT_SetButtonLabel(txt_button_t *button, const char *label)
button->label = strdup(label);
}
txt_button_t *TXT_NewButton(char *label)
txt_button_t *TXT_NewButton(const char *label)
{
txt_button_t *button;

View file

@ -45,7 +45,7 @@ struct txt_button_s
* @return Pointer to the new button widget.
*/
txt_button_t *TXT_NewButton(char *label);
txt_button_t *TXT_NewButton(const char *label);
/**
* Create a new button widget, binding the "pressed" signal to a