summaryrefslogtreecommitdiffstats
path: root/generic/tkMenu.c
Commit message (Collapse)AuthorAgeFilesLines
* Use (more efficient) Tcl_GetIntFromObj() in stead of Tcl_GetInt() in a few ↵jan.nijtmans2020-02-121-1/+1
| | | | places where it makes sense.
* Eliminate systemEncoding local variable. Don't use TCL_INDEX_NONE yet in ↵jan.nijtmans2019-09-201-1/+1
| | | | 8.6, since it was only introduced in Tcl 8.7
* One missing use of TCL_INDEX_NONE in stead of -1. jan.nijtmans2019-09-201-1/+1
| | | Use some more type-casts, making compiling Tk less sensitive to the use of -DUNICODE or not.
* Simplify NewNativeObj(), since its last parameter is always -1. jan.nijtmans2019-09-161-1/+1
| | | | Change Tcl_StringMatch() calls to Tcl_StringCaseMatch() A few end-of-line unnecessary spacings.
* Fix [f3c5467f07]: various spelling fixes (from Christopher Chavez)fvogel2019-07-021-1/+1
|
* Don't use "struct ThreadSpecificData", while the type name ↵jan.nijtmans2019-07-021-1/+1
| | | | "ThreadSpecificData" is already sufficient.
* Add missing INT2PTR (doesn't cause warning with Tcl8.x, but does with Tcl ↵jan.nijtmans2019-05-171-1/+1
| | | | 9.0). One None -> NULL change which was still missing. Backported from trunk.
* Revised bug fix for [5d991b822e].dgp2019-05-151-18/+25
|\
| * Tests and fix for similar issues in [menu].dgp2019-05-151-7/+25
| |
* | TIP #533 (Extension of the menu post command) implementation was accepted by ↵fvogel2019-02-021-10/+15
|\ \ | | | | | | | | | TCT vote. This allows fixing of bug [70e531918e]: geometry issues with menubuttons on macOS.
| * | Use TkGetMenuIndex to parse the index argument to the post command.culler2019-01-151-7/+7
| | |
| * | Add TkpPostTearoffMenu, called by TkPostTearoffMenu and used in the menu postculler2019-01-131-10/+1
| | | | | | | | | command; eliminates #ifdef in the generic code.
| * | Fix related menubutton issues on linux and Windows.culler2019-01-111-9/+23
| | |
* | | As requested by Christian Werner/François Vogel and others: Undo many None ↵jan.nijtmans2018-12-311-1/+1
|\ \ \ | | | | | | | | | | | | | | | | -> 0 changes, in order to reduce the probability of merge conflicts with other branches. Remark: Many usages of "None" in Tk are wrong, "NULL" should be used in many places where pointers are referenced in stead of XID's. Those places are corrected.
| * | | As requested by Christian Werner/François Vogel and others: Undo many None ↵jan.nijtmans2018-12-311-1/+1
| | | | | | | | | | | | | | | | | | | | -> 0 changes, in order to reduce the probability of merge conflicts with other branches. Remark: Many usages of "None" in Tk are wrong, "NULL" should be used in many places where pointers are referenced in stead of XID's. Those places are corrected.
* | | | Fix [9e31fd9449]: X11/X.h and Windows.h have conflicting symbols jan.nijtmans2018-12-201-1/+1
|\ \ \ \ | |/ / / | | / / | |/ / |/| | *** POTENTIAL INCOMPATIBILITY *** for Win32 only: On X11 and Mac, "None" can still be used as before
| * | Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2018-12-201-1/+1
| | | | | | | | | | | | | | | Windows.h have conflicting symbols. Also fix a few newer (harmless) gcc warnings.
* | | Eliminate type-casts, by using size_t type internally in more situations. No ↵jan.nijtmans2018-08-101-2/+2
| | | | | | | | | | | | functional changes
* | | Fix [5d991b822e]: segmentation violation in TclObjLookupVarEx. Patch from ↵fvogel2018-01-281-0/+11
| |/ |/| | | | | Christian Werner.
* | Fix [657c389120] and [b4214b4712]: Segfault when destroying menu with ↵fvogel2018-01-131-0/+5
| | | | | | | | checkbutton entry
* | Fixed [2160206fff] - Panic when posting a menu of type menubarfvogel2015-11-081-1/+6
|\ \ | |/
| * Proposed fix for [2160206fff] - Panic (Linux) when posting a menu of type ↵fvogel2015-10-181-1/+6
| | | | | | | | menubar
* | Get menu-32.8 and scale-19 fixes from 8.5.dgp2014-11-071-3/+3
|\ \ | |/
| * Restore test menu-32.8dgp2014-11-071-3/+3
| |
* | Stop invalid readdgp2014-11-061-0/+1
|\ \ | |/
| * Stop invalid read.dgp2014-11-061-0/+1
| |
* | Use Tcl_FindCommand in stead of Tcl_GetCommandInfo where this suffices.jan.nijtmans2014-06-031-2/+1
| |
* | Make "menu" a normal command, initialized like any other Tk command.jan.nijtmans2013-10-291-37/+5
| |
* | Some refactoring as initial attempt to fix [f214b8ad5b]. Not finished/tested ↵jan.nijtmans2013-10-281-37/+37
| | | | | | | | yet.
* | Eliminate all usage of functions Tcl_VarEval (deprecated) and Tcl_Eval (to ↵jan.nijtmans2013-03-071-1/+1
| | | | | | | | the prefered Tcl_EvalEx).
* | Replace all Tcl_TraceVar/Tcl_UntraceVar with Tcl_TraceVar2/Tcl_UntraceVar2 ↵jan.nijtmans2013-02-221-3/+3
| | | | | | | | calls: The former are just thin wrappers around the latter.
* | Use internalRep.twoPtrValue.ptr1 in stead of internalRep.otherValuePtr ↵jan.nijtmans2013-02-011-2/+2
|\ \ | |/ | | | | | | everywhere. Change some internal "length" variables from type int to type size_t, so it could handle bigger string sizes (for "novem")
| * SetOptions.3: minor doc fixjan.nijtmans2012-06-191-20/+20
| |\ | | | | | | | | | make various other tables const (all backported from Tk 8.6)
| | * SetOptions.3: minor doc fixjan.nijtmans2012-06-191-9/+9
| | | | | | | | | | | | make various other tables CONST (All backported from Tk 8.6)
| * | some more cygwin compatibility improvementsjan.nijtmans2012-04-061-3/+3
| |\ \ | | |/ | | | format tk.decls like tcl8.5/8.6
| | * some more cygwin compatibility improvementsjan.nijtmans2012-04-061-2/+2
| | |
* | | Use some more (void *)'s in FreeProc's, a step in the direction getting Tk ↵jan.nijtmans2013-01-261-7/+7
| | | | | | | | | | | | to work with "novem"
* | | more places convertedjan.nijtmans2013-01-241-14/+14
| | |
* | | Replace various functions calls, for functions which are small wrappers ↵jan.nijtmans2013-01-141-3/+3
| | | | | | | | | | | | around other functions, to call the wrapped function directly.
* | | Much more cleaning up of result handling.dkf2012-07-231-10/+15
| | |
* | | frq-3536507: clientData field in Tk_OptionSpec should be "const void *"jan.nijtmans2012-06-201-6/+6
| | |
* | | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * generic/tkMenu.c: Defer TkMenuOptionTables cleanup to CallWhenDeleted() time,jenglish2010-02-171-4/+5
| | | | | | | | | | | | | | | to ensure that the record doesn't get freed until after all widget instance commands have been deleted (Fixes [Bug#2952745]).
| | * * generic/tkImgPhoto.c: fix leaks discovered with the Mac OS Xdas2009-02-061-2/+9
| | | | | | | | | | | | | | | * generic/tkMenu.c: Instruments.app Leaks tool. * macosx/tkMacOSXWm.c:
| | * * generic/tkMenu.c (DeleteMenuCloneEntries): Modify entry indexhobbs2006-05-251-5/+6
| | | | | | | | | | | | changes to work around VC6 optimization bug. [Bug 1224330]
| | * * unix/tcl.m4 (Darwin): add 64bit support, check for Tiger copyfile(),das2005-11-271-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add CFLAGS to SHLIB_LD to support passing -isysroot in env(CFLAGS) to configure (flag can't be present twice, so can't be in both CFLAGS and LDFLAGS during configure), don't use -prebind when deploying on 10.4, define TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING (rdar://3171542). (SC_ENABLE_LANGINFO, SC_TIME_HANDLER): add/fix caching, fix obsolete autoconf macros. Sync with tk/unix/tcl.m4, sync whitespace with HEAD. * unix/configure.in: fix obsolete autoconf macros, sync gratuitous formatting/ordering differences with tcl/unix/configure.in. * unix/Makefile.in: add CFLAGS to wish/tktest link to make executable linking the same as during configure (needed to avoid loosing any linker relevant flags in CFLAGS, in particular flags that can't be in LDFLAGS). Avoid concurrent linking of wish and compiling of tkTestInit.o during parallel make, fix dependencies and flags for building tkMacOSXInit.o (checkstubs, checkexports): dependency and Darwin fixes * macosx/tkMacOSXEvent.c (TkMacOSXProcessEvent): * macosx/tkMacOSXEvent.h: * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): * macosx/tkMacOSXCarbonEvents.c: install standard application event handler, add & call functions to start and stop carbon even timer that runs the tcl event loop periodically during a nested carbon event loop in the toolbox (e.g. during menutracking) to ensure tcl timers etc continue to fire, register app event handler for menu tracking and HI command carbon events, move menu event handling to new handlers for those carbon events, no longer register for/handle appleevent carbon event (now dealt with by standard application event handler), event debugging code dynamically acquires carbon event debugging functions to allow use on Tiger where they are no longer exported from HIToolbox. * macosx/tkMacOSXFont.c (TkMacOSXUseAntialiasedText): * macosx/tkMacOSXKeyEvent.c (GetKeyboardLayout): * macosx/tkMacOSXCarbonEvents.c (TkMacOSXInitCarbonEvents): * macosx/tkMacOSXInit.c: * macosx/tkMacOSXInt.h: abstract common code to dynamically acquire address of a named symbol (from a loaded dynamic library) into new function TkMacOSXGetNamedSymbol() and macro TkMacOSXInitNamedSymbol. * macosx/tkMacOSXMenu.c (TkpNewMenu): * macosx/tkMacOSXMenubutton.c (MenuButtonInitControl): * macosx/tkMacOSXMenus.c (TkMacOSXHandleMenuSelect): switch to modern utf8 aware menu manager API, remove obsolete code, add error handling. * macosx/tkMacOSXMouseEvent.c: define OSX 10.3 or later only constants if necessary to allow compilation on OSX 10.2 * macosx/tkMacOSXWm.c (UpdateSizeHints): remove code that is never executed. * generic/tk.h: add/correct location of version numbers in macosx files. * generic/tkInt.h: clarify fat compile comment. * macosx/Wish.pbproj/default.pbxuser (new file): * macosx/Wish.pbproj/jingham.pbxuser: * macosx/Wish.pbproj/project.pbxproj: sync with HEAD. * macosx/buildTkConfig.tcl (removed): remove obsolete build files. * macosx/README: clarification/cleanup, sync with HEAD, document universal (fat) builds via CFLAGS (i.e. ppc and i386 at the same time). * macosx/Makefile: add support for reusing configure cache, build target fixes. * generic/tkMenu.c: * macosx/tkMacOSXButton.c: * macosx/tkMacOSXDebug.c: * macosx/tkMacOSXDebug.h: * macosx/tkMacOSXDialog.c: * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXEntry.c: * macosx/tkMacOSXMenu.c: * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXXStubs.c: * macosx/tkMacOSXSubwindows.c: * xlib/xgc.c: declare functions and globals used only in own file as static, #ifdef out a few Xlib and aqua functions that are never called (sync with HEAD). * macosx/tkMacOSXPort.h: * generic/tkInt.decls: correct signature of TkMacOSXHandleMenuSelect, add XSync to aqua Xlib stubs. * generic/tkTest.c: #ifdef unix only declarations. (TestmetricsCmd): unify win and mac implementation. * generic/tkTextDisp.c: * generic/tkTextBTree.c: * macosx/tkMacOSXInit.c: * macosx/tkMacOSXKeyEvent.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXXStubs.c: fix gcc 4 warnings. * macosx/tkMacOSXNotify.c: * macosx/tkMacOSXTest.c: sync with HEAD. * generic/tkIntPlatDecls.h: * generic/tkIntXlibDecls.h: * generic/tkStubInit.c: * unix/configure: regen.
| | * * generic/tkMenu.c (MenuCmd): create event handler earlier tohobbs2005-05-311-37/+15
| | | | | | | | | | | | | | | ensure proper destruction of menu through DestroyNotify. [Bug 1159367]
| | * * generic/tkInt.h: Backport of shutdown safety mods from the HEADdavygrvy2004-10-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMenu.c: dating from 2003-12-21 * generic/tkUtil.c: * generic/tkWindow.c: * mac/tkMacButton.c: * unix/tkUnixEvent.c: * win/tkWin32Dll.c: * win/tkWinEmbed.c: * win/tkWinMenu.c: * win/tkWinX.c: