summaryrefslogtreecommitdiff
path: root/new/unix/checkbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'new/unix/checkbox.c')
-rw-r--r--new/unix/checkbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/new/unix/checkbox.c b/new/unix/checkbox.c
index 5111c0e..f3563a1 100644
--- a/new/unix/checkbox.c
+++ b/new/unix/checkbox.c
@@ -31,12 +31,12 @@ static void onDestroy(GtkWidget *widget, gpointer data)
static char *getText(uiCheckbox *c)
{
- return g_strdup(gtk_button_get_label(CHECKBOX(c)));
+ return g_strdup(gtk_button_get_label(GTK_BUTTON(CHECKBOX(c))));
}
static void setText(uiCheckbox *c, const char *text)
{
- gtk_button_set_label(CHECKBOX(c), text);
+ gtk_button_set_label(GTK_BUTTON(CHECKBOX(c)), text);
}
static void setOnToggled(uiCheckbox *cc, void (*f)(uiCheckbox *, void *), void *data)