Make TXT_NewButton parameter const
This commit is contained in:
parent
44b80b2a7a
commit
4b48cd7f9d
2 changed files with 2 additions and 2 deletions
|
|
@ -99,7 +99,7 @@ void TXT_SetButtonLabel(txt_button_t *button, const char *label)
|
||||||
button->label = strdup(label);
|
button->label = strdup(label);
|
||||||
}
|
}
|
||||||
|
|
||||||
txt_button_t *TXT_NewButton(char *label)
|
txt_button_t *TXT_NewButton(const char *label)
|
||||||
{
|
{
|
||||||
txt_button_t *button;
|
txt_button_t *button;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ struct txt_button_s
|
||||||
* @return Pointer to the new button widget.
|
* @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
|
* Create a new button widget, binding the "pressed" signal to a
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue