summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tkScale.c: Revised variable writing logic to accountdgp2006-06-141-5/+12
| | | | | for [scale]'s design that it deals with its value as a formatted string, and not as a double. [Bug 891141].
* * generic/tkMain.c: Added Tcl_Preserve() call on the masterdgp2006-06-091-1/+3
| | | | | interp as crash protection against any Tcl_DeleteInterp() call that might happen.
* * generic/tkInt.h: Thread safety for the data structures ofdgp2006-06-052-321/+456
| | | | * generic/tkConsole.c: the wish [console]. [Bug 1188340].
* * generic/tkConsole.c: Added Tcl_RegisterChannel() calls to bumpdgp2006-06-011-2/+11
| | | | | the refcount of channels passed to Tcl_SetStdChannel(). This prevents early free-ing of the channels that leads to crashes. [Bug 912571].
* * tests/entry.test (entry-22.1):hobbs2006-05-291-24/+22
| | | | | | | * tests/listbox.test (listbox-6.15): * generic/tkListbox.c (ListboxInsertSubCmd, ListboxDeleteSubCmd): Ignore Tcl_SetVar2Ex failure of listVarName, similar to entry widget handling. [Bug 1424513]
* * generic/tkMenu.c (DeleteMenuCloneEntries): Modify entry indexhobbs2006-05-251-5/+6
| | | | changes to work around VC6 optimization bug. [Bug 1224330]
* * generic/tkMessage.c (MessageWidgetObjCmd): Correct msgPtrhobbs2006-05-251-8/+9
| | | | preserve/release pairing. [Bug 1485750] (afredd)
* * generic/tkWindow.c (Initialize): Correct mutex (un)lockhobbs2006-05-251-16/+14
| | | | pairing. [Bug 1479587]
* * generic/tkImgPhoto.c (Tk_PhotoPutBlock, Tk_PhotoPutZoomedBlock):hobbs2006-05-131-19/+29
| | | | | Fix opt added 2006-03 that caused slowdown for some common cases. [Bug 1409140]
* * generic/tkCanvWind.c (DisplayWinItem, WinItemRequestProc): ensuredas2006-05-121-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | canvas window items are unmapped when canvas is unmapped. [Bug 940117] * macosx/tkMacOSXSubwindows.c (TkMacOSXUpdateClipRgn): empty clip region of unmapped windows to prevent any drawing into them or into their children from becoming visible. [Bug 940117] * macosx/tkMacOSXInt.h: revert Jim's attempt of 2005-03-14 to * macosx/tkMacOSXSubwindows.c: fix Bug 940117 as it disables Map/Unmap event propagation to children. [Bug 1480105] * macosx/tkMacOSXDraw.c (TkPutImage): handle tkPictureIsOpen flag, fixes incorrect positioning of images with complex alpha on native buttons; actual alpha blending is still broken in this situation. [Bug 1155596] * macosx/tkMacOSXEvent.c (TkMacOSXProcessCommandEvent): * macosx/tkMacOSXMenus.c (TkMacOSXInitMenus): workaround carbon bug with key shortcut for 'Preferences' app menu item. [Bug 1481503] * macosx/tkMacOSXKeyEvent.c (TkMacOSXProcessKeyboardEvent): only check for HICommand menu item shortcuts in the application menu. * macosx/tkMacOSXInt.h: initialize keyboard layout setup in * macosx/tkMacOSXInit.c: TkpInit() rather than during handling of * macosx/tkMacOSXKeyEvent.c: first key down event. * macosx/tkMacOSXDraw.c: add optional debug code to flash clip * macosx/tkMacOSXSubwindows.c: regions during update or draw.
* * README: Bump version number to 8.4.14dgp2006-05-041-3/+3
| | | | | | | | | | * generic/tk.h: * unix/configure.in: * unix/tk.spec: * win/configure.in: * unix/configure: autoconf-2.13 * win/configure:
* Correction to 1432666 fix.pspjuth2006-04-121-6/+1
|
* * generic/tkGrid.c: Fixed handling of out of bounds row or column.dgp2006-04-121-7/+116
| | | | * tests/grid.test: [Bug 1432666]
* * generic/tkBind.c (Tk_BindEvent, ChangeScreen): replacehobbs2006-04-111-6/+9
| | | | Tcl_GlobalEval with more efficient Tcl_EvalEx.
* * tests/grid.test: fix segfault on empty index listhobbs2006-04-051-26/+31
| | | | * generic/tkGrid.c (GridRowColumnConfigureCommand): [Bug 1422430]
* * generic/tkText.c (DumpLine): stop dumping if we detect that thehobbs2006-04-051-100/+117
| | | | | | text widget state has changed while dumping. [Bug 1414171] (InsertChars, DeleteChars): fix undo with space-based path. * tests/text.test (text-25.14): [Bug 1452419]
* * generic/tkTextDisp.c (TkTextPixelIndex): Don't segfault on fullhobbs2006-04-051-2/+10
| | | | -elide text. [Bug 1442102]
* * generic/tkWindow.c (DeleteWindowsExitProc): added commentshobbs2006-03-302-4/+10
| | | | | * generic/tkOption.c (TkOptionDeadWindow): handle OptionThreadExitProc being called before DeleteWindowsExitProc.
* * generic/tkWindow.c (CreateTopLevelWindow): use thread exithobbs2006-03-291-6/+7
| | | | handler for DeleteWindowsExitProc.
* * generic/tkFont.h: added prototype for TkFontGetFirstTextLayout()das2006-03-281-1/+3
| | | | needed by tkMacOSXButton.c and tkMacOSXMenubutton.c.
* Fix (and add test for) [Bug 1458234]dkf2006-03-271-14/+14
|
* Fix [Bug 1380427] with [Patch 1391939]dkf2006-03-201-28/+8
|
* Hack to make photo-to-photo copies cheaper in the common case of no alphadkf2006-03-161-4/+26
|
* Squelch [Bug 1409140] by special-case-ing the single-pixel put case.dkf2006-03-151-3/+37
|
* * generic/tkCmds.c: Purged remaining references todgp2006-03-131-2/+1
| | | | | | | * macosx/tkMacOSXPort.h: errno, and errno.h. Standardized * macosx/tkMacOSXWm.c: the logic for using header files from * macosx/tkMacOSXWm.h: the compat directory. Thanks Joe * unix/tkUnixPort.h: English for the patch. [Patch 1445404]
* * READNE: Bump version number to 8.4.13 and updatedgp2006-03-071-3/+3
| | | | | | | | * changes: changes to start prep for an 8.4.13 release. * generic/tk.h: * unix/configure{.in}: * unix/tk.spec: * win/configure{.in}:
* Fix old thread-safety issue. [Bug 470322]dkf2006-02-271-2/+6
|
* Fix pixmap creation ordering issue [Bug 480862]dkf2006-02-271-16/+22
| | | | Stupid issue was fixed for the mask pixmap, but not the data pixmap!
* * generic/tk.decls: fix signature of TkMacOSXInvalClipRgnsdas2006-02-093-17/+6
| | | | | | | | | | * generic/tkPlatDecls.h: to use Tk_Window instead of internal * macosx/tkMacOSXSubwindows.c: type TkWindow (which led to any include * macosx/tkMacOSXWindowEvent.c: of public header tkMacOSX.h requiring * macosx/tkMacOSXWm.c: prior include of tkInt.h). * generic/tk.h: move TkAqua specific REDO_KEYSYM_LOOKUP define * macosx/tkMacOSXPort.h: out of tk.h into platform header.
* XIM fixes [See #905830, patch tk84-xim-fixes.patch]:jenglish2006-01-201-3/+5
| | | | | | + Revert 2005-12-05 patch disabling XIM when SCIM in use; + Make sure all X events get passed to XFilterEvent, including those without a corresponding Tk window.
* * generic/tkOldConfig.c (Tk_ConfigureWidget): fix the handling ofhobbs2005-12-051-13/+25
| | | | | | TK_CONFIG_OPTION_SPECIFIED to be flagged appropriately in original Tk_ConfigSpec. This is *not* thread safe, but will be retained for 8.4.x and left out of 8.5.x. [Bug 749908]
* update README filesdgp2005-12-021-2/+2
|
* * generic/tkImgGIF.c: cast calls to block_outhobbs2005-12-011-3/+3
|
* * generic/tkEvent.c: fix handling of ClientMessage handlers.hobbs2005-11-301-4/+4
| | | | [Bug 1289565 983920]
* * unix/tcl.m4 (Darwin): add 64bit support, check for Tiger copyfile(),das2005-11-2710-57/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix [Bug 1151523] by making the code conform to the docs.dkf2005-11-221-15/+22
|
* Backport of fixes for [Bug 1353414]dkf2005-11-221-12/+15
|
* * README: Bump version number to 8.4.12dgp2005-11-161-3/+3
| | | | | | | | | | | * generic/tk.h: * macosx/Wish.pbproj/project.pbxproc: * unix/configure.in: * unix/tk.spec: * win/configure.in: * unix/configure: autoconf * win/configure:
* * generic/tkMain.c: Rewrote code that sets the ::argv valuedgp2005-10-181-16/+21
| | | | | | to be sure conversion from the system encoding is complete before any processing sensitive to list-special characters is done. [Bug 1328926].
* * generic/tkInt.h: add MODULE_SCOPE and WORDS_BIGENDIAN checkshobbs2005-10-101-1/+40
| | | | that will work with OS X universal binary compiles. (steffen)
* * generic/tkConfig.c (Tk_DeleteOptionTable, Tk_CreateOptionTable):hobbs2005-10-101-3/+3
| | | | properly alloc/delete one more option. [Bug 1319720] (melbardis)
* Fix for [Bug 1288128]dkf2005-09-141-86/+131
|
* Backport of fix for Tk_ConfigSpec-related part of [Bug 749908]dkf2005-08-161-24/+131
|
* Fix [Bug 1252702]dkf2005-08-1111-72/+69
|
* * macosx/tkMacOSXCarbonEvents.c (new): moved carbon events code intodas2005-08-092-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXHLEvents.c: new file like on HEAD, * macosx/tkMacOSXInit.c (TkpInit): initialize carbon event handlers * macosx/tkMacOSXInt.h: in TkpInit(), add new source * unix/Makefile.in: file to Makefile.in. * macosx/tkMacOSXCarbonEvents.c (AppEventHandlerProc): handle carbon events sent directly to application event target via the general TkMacOSXProcessEvent() in the same way as events posted to the event loop. Moved existing app event handlers to tkMacOSXWindowEvent.c. (TkMacOSXInitCarbonEvents): register our application event handler for kEventWindowExpanded events to deal with uncollapsing from the dock. * macosx/tkMacOSXEvent.h: made TkMacOSXProcessEvent() non-static, added * macosx/tkMacOSXEvent.c: new interp field to TkMacOSXEvent struct for use by app event handler. * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): retrieve current window, partCode, modifiers and local cursor position from carbon mouse event if possible. Use new static GenerateButtonEvent() taking a MouseEventData struct instead of TkGenerateButtonEvent() to avoid recomputing already known values. Move process activation on MouseDown into BringWindowForward() to allow clicking on window titlebar widgets without activating process. Move code dealing with clicks in window titelbar into separate function HandleWindowTitlebarMouseDown() to avoid code duplication. Avoid repeated calls to TkMacOSXGetXWindow() by storing result in MouseEventData struct. (TkMacOSXButtonKeyState, XQueryPointer): try to get button and modifier state from currently processed carbon event (to avoid unnecessary IPC with the window server), otherwise use modern carbon API to get this info instead of Button() and GetKeys(); only retrieve info caller asks for (via non-NULL ptr passed to XQueryPointer). (ButtonModifiers2State): new static function converting carbon button and modifier state into tk state, allows detection of more than 3 mouse buttons (tk supports up to 5) and of NumLock and Fn modifier keys (NumLock is mapped to Mod3 and Fn to Mod4). * macosx/tkMacOSXWindowEvent.c (TkMacOSXProcessApplicationEvent): handle kEventWindowExpanded event to deal with window uncollapsing from the dock by generating tk Map event, handle kEventAppHidden and kEventAppShown events (moved here from tkMacOSXCarbonEvents.c). * macosx/tkMacOSXSubwindows.c (XUnmapWindow): only hide window when it is not iconified to avoid window flashing on collapse. * macosx/tkMacOSXWm.c: replaced Tk_DoWhenIdle() by Tcl_DoWhenIdle(). (TkMacOSXZoomToplevel): remove call to TrackBox(), now done in HandleWindowTitlebarMouseDown() in tkMacOSXMouseEvent.c. (TkpWmSetState): avoid window flashing on collapse by unmapping after calling CollapseWindow(); only uncollapse window if it is collapsed. * generic/tkInt.decls: changed TkMacOSXZoomToplevel() signature. * generic/tkIntPlatDecls.h: * macosx/tkMacOSXKeyEvent.c (TkMacOSXProcessKeyboardEvent): only call GetMenuItemCommandID() on KeyDown or KeyRepeat events. * macosx/tkMacOSXMenu.c (ReconfigureMacintoshMenu): remove call to obsolete AppendResMenu() API. * macosx/tkMacOSXKeyEvent.c: replaced all direct uses of expensive * macosx/tkMacOSXMenu.c: GetMouse() and TkMacOSXButtonKeyState() * macosx/tkMacOSXMenus.c: APIs by calls to XQueryPointer() * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXScale.c: * macosx/tkMacOSXScrlbr.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXDialog.c: replaced use of FrontNonFloatingWindow() * macosx/tkMacOSXKeyEvent.c: by ActiveNonFloatingWindow() as * macosx/tkMacOSXMenu.c: recommended by Carbon docs. * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXDialog.c: fixed warnings * macosx/tkMacOSXTest.c: * macosx/tkMacOSXCarbonEvents.c: added CVS Id line to file header. * macosx/tkMacOSXDebug.c: * macosx/tkMacOSXDebug.h: * macosx/tkMacOSXEntry.c: * macosx/tkMacOSXEvent.h: * macosx/tkMacOSXKeyEvent.c: * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXWm.h: * macosx/tkMacOSXEmbed.c: replaced all uses of panic() with Tcl_Panic() * macosx/tkMacOSXFont.c: (sync with HEAD). * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXXStubs.c: * macosx/tkMacOSXInt.h: sync with HEAD changes of 2005-03-14. * macosx/tkMacOSXSubwindows.c: * macosx/tclets.r (removed): sync with HEAD. * macosx/tkMacOSXScale.c: * macosx/tkMacOSXPort.h: * library/demos/menu.tcl: removed errant '}'.
* * generic/tkFrame.c (DisplayFrame):hobbs2005-07-284-11/+43
| | | | | | | | | | | * generic/tkInt.decls: add TkpDrawFrame to allow for * generic/tkIntDecls.h: platform-specific drawing into the frame/ * generic/tkStubInit.c: toplevel area. Currently only differs on * generic/tkFrame.c: OS X (Aqua), which will draw a themed bg * win/tkWinDraw.c: if tk::mac::useThemedToplevel == 1. * unix/tkUnixDraw.c: Normal frames left alone until we can * mac/tkMacDraw.c: better factor out frame drawing to be * macosx/tkMacDraw.c: widget-specific.
* * generic/tkInt.h: Swap TkUnsupported1Cmd for TkUnsupported1ObjCmd.hobbs2005-07-282-6/+7
| | | | | | | | | | | | * generic/tkWindow.c: Ditto. (neil madden) * macosx/tkMacOSXInt.h: Added TkMacOSXWindowClass decl * macosx/tkMacOSXWm.c (TkMacOSXWinStyle) New function. (TkUnsupported1ObjCmd): New function, replaces the un-objectified version of the command, recognizes more classes and attributes. (TkMacOSXWindowClass): private function to return OS X class of a Tk window. * macosx/tkMacOSXSubwindows.c (XMapWindow, XUnmapWindow): recognize special show/hide functions for sheets
* * generic/tkConsole.c: backport fix for bug 756840 & sync whitespacedas2005-06-231-8/+26
| | | | | | changes from HEAD. * generic/tkConsole.c (TkConsolePrint): prevent potential NULL deref.
* typodgp2005-06-211-2/+2
|
* Plug a buffer overflow in the GIF readerdkf2005-06-201-22/+33
|