diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-10-29 13:59:18 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-10-29 13:59:18 (GMT) |
commit | 637ea03ab047c97e3a8e0c5ed58b010e8142874b (patch) | |
tree | 8ed0761ccc67000d150d6e1f472085cd6c52408d /generic/tkWindow.c | |
parent | e4f9fece815b8121b9300c83a9697f2b2ea27e9f (diff) | |
download | tk-637ea03ab047c97e3a8e0c5ed58b010e8142874b.zip tk-637ea03ab047c97e3a8e0c5ed58b010e8142874b.tar.gz tk-637ea03ab047c97e3a8e0c5ed58b010e8142874b.tar.bz2 |
Make "menu" a normal command, initialized like any other Tk command.
Diffstat (limited to 'generic/tkWindow.c')
-rw-r--r-- | generic/tkWindow.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c index 91806cf..6f5ee95 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -149,6 +149,7 @@ static const TkCmd commands[] = { {"label", Tk_LabelObjCmd, ISSAFE}, {"labelframe", Tk_LabelframeObjCmd, ISSAFE}, {"listbox", Tk_ListboxObjCmd, ISSAFE}, + {"menu", Tk_MenuObjCmd, PASSMAINWINDOW}, {"menubutton", Tk_MenubuttonObjCmd, ISSAFE}, {"message", Tk_MessageObjCmd, ISSAFE}, {"panedwindow", Tk_PanedWindowObjCmd, ISSAFE}, @@ -987,8 +988,6 @@ TkCreateMainWindow( } } - TkCreateMenuCmd(interp); - /* * Set variables for the intepreter. */ |