diff options
| author | forsyth <forsyth@vitanuova.com> | 2010-04-02 20:48:59 +0100 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2010-04-02 20:48:59 +0100 |
| commit | f94b359d339cfcefb3725fe7c0e78211443815b4 (patch) | |
| tree | 4aa4684087ca68a91457ba0d3c633cada5c76fb9 /libtk/buton.c | |
| parent | 1b078c23175db54397bc01f26f2456b729db9c4b (diff) | |
20100402-2048
Diffstat (limited to 'libtk/buton.c')
| -rw-r--r-- | libtk/buton.c | 5 |
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; } |
