diff options
author | Kevin Walzer <kw@codebykevin.com> | 2015-03-15 20:32:14 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2015-03-15 20:32:14 (GMT) |
commit | 6e41403c336acc8173b623bfc2ca99d67bdb1f32 (patch) | |
tree | 2255776f9d97d8c16dd5d35c40e60159e4b4dc57 /macosx/tkMacOSXMenu.c | |
parent | d0006a3b5b241be40841813560c7c54addabbc7e (diff) | |
download | tk-6e41403c336acc8173b623bfc2ca99d67bdb1f32.zip tk-6e41403c336acc8173b623bfc2ca99d67bdb1f32.tar.gz tk-6e41403c336acc8173b623bfc2ca99d67bdb1f32.tar.bz2 |
Wish now launches in front when caed from command line, and focus -force works correctly; thanks to Marc Culler for patch
Diffstat (limited to 'macosx/tkMacOSXMenu.c')
-rw-r--r-- | macosx/tkMacOSXMenu.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c index e1cdc76..3dadb45 100644 --- a/macosx/tkMacOSXMenu.c +++ b/macosx/tkMacOSXMenu.c @@ -830,11 +830,16 @@ TkpSetWindowMenuBar( * Puts the menu associated with a window into the menubar. Should only * be called when the window is in front. * + * This is a no-op on all other platforms. On OS X it is a no-op when + * passed a NULL menuName or a nonexistent menuName, with an exception + * for the first call in a new interpreter. In that special case, passing a + * NULL menuName installs the default menu. + * * Results: * None. * * Side effects: - * The menubar is changed. + * The menubar may be changed. * *---------------------------------------------------------------------- */ @@ -843,8 +848,7 @@ void TkpSetMainMenubar( Tcl_Interp *interp, /* The interpreter of the application */ Tk_Window tkwin, /* The frame we are setting up */ - char *menuName) /* The name of the menu to put in front. If - * NULL, use the default menu bar. */ + char *menuName) /* The name of the menu to put in front.*/ { static Tcl_Interp *currentInterp = NULL; TKMenu *menu = nil; |