diff options
author | hobbs <hobbs> | 1999-12-07 03:09:58 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 1999-12-07 03:09:58 (GMT) |
commit | 16afd8f8c6c256b09d0495d5780ab5b29b07ef0f (patch) | |
tree | 244597beb8e79a6d57fe2582fe3a4845e8a60610 | |
parent | 9efd546ed39b727a4489f69da3e0966570c4d513 (diff) | |
download | tk-16afd8f8c6c256b09d0495d5780ab5b29b07ef0f.zip tk-16afd8f8c6c256b09d0495d5780ab5b29b07ef0f.tar.gz tk-16afd8f8c6c256b09d0495d5780ab5b29b07ef0f.tar.bz2 |
added TkpPreprocessMenu (commited before saving one last file...)
-rw-r--r-- | mac/tkMacMenu.c | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/mac/tkMacMenu.c b/mac/tkMacMenu.c index 2044a0a..c9fb7c5 100644 --- a/mac/tkMacMenu.c +++ b/mac/tkMacMenu.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacMenu.c,v 1.14 1999/12/07 03:04:51 hobbs Exp $ + * RCS: @(#) $Id: tkMacMenu.c,v 1.15 1999/12/07 03:09:58 hobbs Exp $ */ #include "tkMacInt.h" @@ -4425,3 +4425,33 @@ TkpMenuThreadInit() * Nothing to do. */ } + +/* + *---------------------------------------------------------------------- + * + * TkpPreprocessMacMenu -- + * + * Handle preprocessing of menubar if it exists. + * + * Results: + * None. + * + * Side effects: + * All post commands for the current menubar get executed. + * + *---------------------------------------------------------------------- + */ + +void +TkpPreprocessMacMenu() +{ + TkMenuReferences *menuBarRefPtr; + + if ( currentMenuBarName != NULL ) { + menuBarRefPtr = TkFindMenuReferences(currentMenuBarInterp, + currentMenuBarName); + if ( (menuBarRefPtr != NULL) && (menuBarRefPtr->menuPtr != NULL) ) { + TkPreprocessMenu(menuBarRefPtr->menuPtr->masterMenuPtr); + } + } +} |