summaryrefslogtreecommitdiffstats
path: root/generic/tkMenu.c
Commit message (Collapse)AuthorAgeFilesLines
* 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 *"frq_3536507jan.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:
| | * * generic/tkMenu.c (MenuWorldChanged): ensure that we recomputehobbs2004-09-161-7/+7
| | | | | | | | | | | | | | | the menu geometry on WorldChanged to handle font size changes. [Bug 607649]
| | * * generic/tkMenu.c (MenuVarProc): prevent this from triggeringhobbs2003-12-031-5/+13
| | | | | | | | | | | | while interp is being destroyed.
| | * menu clone cleanup bug fixvincentdarley2003-07-151-60/+138
| | |
| * | 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]).
| * | [Bug 220950]: Don't delete the last menu entry when it is obvious that is notdkf2010-01-051-2/+13
| | | | | | | | | | | | what was intended.
| * | Patch 2879789: Make torn-off menu entrys activate across whole windowpatthoyts2009-12-301-13/+25
| | | | | | | | | | | | backported from HEAD.
| * | * generic/tkMenu.c (PostProcessEntry): delay call todas2009-04-101-5/+5
| | | | | | | | | | | | TkpConfigureMenuEntry() until all menu entry attributes are setup.
| * | * generic/tkImgPhoto.c: fix numerous leaks discovered with thedas2009-02-061-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMenu.c: Mac OS X Instruments.app Leaks tool. * generic/tkText.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkUndo.c: * generic/ttk/ttkFrame.c: * macosx/tkMacOSXWm.c:
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-30/+25
| | | | | | | | | using useful casts internally.
* | | Revise Tcl_Panic() calls ending with a newline removing the newline, because ↵nijtmans2010-11-191-3/+3
| | | | | | | | | | | | Tcl_Panic() outputs a final newline already
* | | CONSTify TkCopyAndGlobalEval, TkpSetMainMenubar,nijtmans2010-05-101-3/+3
| | | | | | | | | | | | | | | TkpMenuNotifyToplevelCreate, and TkSetWindowMenuBar Bring Tk_CreateBinding doc and signature (param name) in line.
* | | 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]).
* | | fix more gcc warnings: missing initializernijtmans2010-01-181-57/+57
| | | | | | | | | | | | | | | Apply patch [#2932808]: Canvas items not updating on widget state change
* | | Eliminate tkpMenubuttonClassnijtmans2010-01-131-3/+5
| | | | | | | | | | | | | | | make tkpButtonProcs CONST fix gcc warnings: missing initializer
* | | [Bug 220950]: Don't delete the last menu entry when it is obvious that is notdkf2010-01-051-2/+13
| | | | | | | | | | | | what was intended.
* | | SMALL FIX: Remove useless explicit casts now that we require C89 or later.dkf2010-01-021-2/+2
| | |
* | | Patch 2879789: Make torn-off menu entrys activate across whole windowpatthoyts2009-12-301-13/+25
| | | | | | | | | | | | | | | | | | | | | | | | The torn-off menu entries do not activate except immediately over the label or icon. If the window containing the torn-off menu is expanded then a lot of dead space may be created, including the cascade arrow. This patch fixes this making the whole width for any menu entry capable of activation when the pointer hovers over the item.
* | | Improve generation of EWMH hints for windows.dkf2009-12-091-19/+41
| | |
* | | * generic/tkFocus.c: fix potential null dereference flagged by clangdas2009-09-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMenu.c: static analyzer. * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextIndex.c: * generic/tkConsole.c: silence false positives from clang static * generic/tkTest.c: analyzer about potential null dereference. * generic/tkText.c: * generic/tkTextBTree.c: * generic/tkTextTag.c: * generic/tkVisual.c:
* | | * generic/tkMenu.c (PostProcessEntry): delay call todas2009-04-101-5/+5
| | | | | | | | | | | | TkpConfigureMenuEntry() until all menu entry attributes are setup.
* | | * generic/tkImgPhInstance.c: fix numerous leaks discovered with thedas2009-02-061-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMenu.c: Mac OS X Instruments.app Leaks tool. * generic/tkText.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkUndo.c: * generic/tkUtil.c: * generic/ttk/ttkFrame.c: * macosx/tkMacOSXWm.c:
* | | - fix for aMSN compatibility [tcl-Bug 2507326]nijtmans2009-01-141-24/+25
| | | | | | | | | | | | | | | - CONSTify Tk(Create|Find)menuReferences - various internal "const" decorations
* | | elminate warning: unused variable 'tkwin'nijtmans2008-11-271-3/+3
| | | | | | | | | | | | | | | Replace Tcl_SetResult(interp, NULL, ....) calls with Tcl_ResetResult(interp) everywhere
* | | More small changes to use C89 better and manage the result more efficiently.dkf2008-11-081-2/+2
| | |
* | | more internal -Wwrite-strings warning fixesnijtmans2008-10-301-2/+2
| | |
* | | Add "const" to many internalnijtmans2008-10-171-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries.