From ece2d7c38de06e372c38ecd93d09a97b36a449da Mon Sep 17 00:00:00 2001 From: culler Date: Thu, 30 Nov 2017 15:06:33 +0000 Subject: Add missing code to run the postcommand in TkpPostMenu for macOS. Fixes [13d63d2794]. --- macosx/tkMacOSXMenu.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c index 2101977..1e0dc40 100644 --- a/macosx/tkMacOSXMenu.c +++ b/macosx/tkMacOSXMenu.c @@ -770,8 +770,15 @@ TkpPostMenu( Drawable d = Tk_WindowId(root); NSView *rootview = TkMacOSXGetRootControl(d); NSWindow *win = [rootview window]; + int result; inPostMenu = 1; + + result = TkPreprocessMenu(menuPtr); + if (result != TCL_OK) { + inPostMenu = 0; + return result; + } int oldMode = Tcl_SetServiceMode(TCL_SERVICE_NONE); NSView *view = [win contentView]; -- cgit v0.12