diff options
Diffstat (limited to 'new/button_unix.c')
| -rw-r--r-- | new/button_unix.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/new/button_unix.c b/new/button_unix.c index a39bdf5..c458e68 100644 --- a/new/button_unix.c +++ b/new/button_unix.c @@ -47,7 +47,15 @@ uiControl *uiNewButton(const char *text) return b->c; } -// TODO text +char *uiButtonText(uiControl *c) +{ + return g_strdup(gtk_button_get_label(GTK_BUTTON(uiControlHandle(c)))); +} + +void uiButtonSetText(uiControl *c, const char *text) +{ + gtk_button_set_label(GTK_BUTTON(uiControlHandle(c)), text); +} void uiButtonOnClicked(uiControl *c, void (*f)(uiControl *, void *), void *data) { |
