summaryrefslogtreecommitdiff
path: root/libtk/buton.c
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2010-04-02 20:48:59 +0100
committerforsyth <forsyth@vitanuova.com>2010-04-02 20:48:59 +0100
commitf94b359d339cfcefb3725fe7c0e78211443815b4 (patch)
tree4aa4684087ca68a91457ba0d3c633cada5c76fb9 /libtk/buton.c
parent1b078c23175db54397bc01f26f2456b729db9c4b (diff)
20100402-2048
Diffstat (limited to 'libtk/buton.c')
-rw-r--r--libtk/buton.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libtk/buton.c b/libtk/buton.c
index 356b8985..325422b9 100644
--- a/libtk/buton.c
+++ b/libtk/buton.c
@@ -198,15 +198,16 @@ tkmkbutton(TkTop *t, int btype)
tkl = TKobj(TkLabel, tk);
tkl->ul = -1;
tkl->justify = Tkleft;
- if (btype == TKradiobutton)
- tkl->variable = strdup(tkselbut);
switch (btype) {
case TKbutton:
e = tkbindings(t, tk, bb, nelem(bb));
break;
case TKcheckbutton:
+ e = tkbindings(t, tk, cb, nelem(cb));
+ break;
case TKradiobutton:
+ tkl->variable = strdup(tkselbut);
e = tkbindings(t, tk, cb, nelem(cb));
break;
}