* widget.h: Added a new function button_get_text.

* widget.c: Likewise.
This commit is contained in:
Roland Illig 2005-02-06 23:08:02 +00:00
parent ce99a5fc53
commit e6a4ffaba1
3 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-02-06 Roland Illig <roland.illig@gmx.de>
* widget.h: Added a new function button_get_text.
* widget.c: Likewise.
2005-02-06 Roland Illig <roland.illig@gmx.de>
* achown.c (get_ownership): Simplified the code. Now it is

View File

@ -236,6 +236,12 @@ button_new (int y, int x, int action, int flags, const char *text,
return b;
}
const char *
button_get_text (WButton *b)
{
return b->text;
}
void
button_set_text (WButton *b, const char *text)
{

View File

@ -171,6 +171,7 @@ void gauge_set_value (WGauge *g, int max, int current);
void gauge_show (WGauge *g, int shown);
/* Buttons */
const char *button_get_text (WButton *b);
void button_set_text (WButton *b, const char *text);
/* Listbox manager */