diff options
Diffstat (limited to 'libtk/menus.c')
| -rw-r--r-- | libtk/menus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtk/menus.c b/libtk/menus.c index 4d4d55d4..ea02cef8 100644 --- a/libtk/menus.c +++ b/libtk/menus.c @@ -155,7 +155,7 @@ tksizemenubutton(Tk *tk) TkLabel *tkl = TKobj(TkLabel, tk); tksizelabel(tk); - if (tk->type != TKchoicebutton) + if(tk->type != TKchoicebutton) return; w = tk->req.width; h = tk->req.height; @@ -789,7 +789,7 @@ layout(Tk *menu) /* determine padding for item text alignment */ for (tk = tkw->slave; tk != nil; tk = tk->next) { - m = tklabelmargin(tk); + m = tkbuttonmargin(tk); /* TO DO: relies on buttonmargin defaulting to labelmargin */ tk->act.x = m; /* temp store */ if (m > maxmargin) maxmargin = m; |
