summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Lots of ANSIfying of function decls.dkf2005-11-1736-2617/+2623
| | | | Also a few spots where code has been cleaned up more completely.
* ANSI function declsdkf2005-11-161-43/+40
|
* ANSIfydkf2005-11-1518-2917/+2885
|
* ANSIfydkf2005-11-144-1013/+966
|
* Fix problem in default selection handler outlined by test select-9.5dkf2005-11-141-12/+14
|
* Typo fixdkf2005-11-131-2/+2
|
* ANSIfydkf2005-11-134-598/+595
|
* More bits of ANSIfyingdkf2005-11-115-1606/+1563
|
* Fixes of other issues raised in [Bug 1353022]dkf2005-11-102-3/+6
|
* ANSIfydkf2005-11-072-395/+364
|
* ANSIfydkf2005-11-072-256/+250
|
* ANSIfydkf2005-11-041-109/+98
|
* ANSIfydkf2005-11-0411-3258/+3137
|
* ANSIfydkf2005-11-0410-2019/+1981
|
* fix for count displaylines bugvincentdarley2005-10-311-1/+10
|
* * generic/tkMain.c: Rewrote code that sets the ::argv valuedgp2005-10-181-24/+23
| | | | | | to be sure conversion from the system encoding is complete before any processing sensitive to list-special characters is done. [Bug 1328926].
* Format for style and remove non-ANSI declsdkf2005-10-171-279/+278
|
* Format for style and remove non-ANSI declsdkf2005-10-171-587/+585
|
* whitespace cleaningdkf2005-10-171-5/+5
|
* Format for style and remove non-ANSI declsdkf2005-10-171-345/+335
|
* Format for style and remove non-ANSI declarationsdkf2005-10-171-421/+386
|
* Formatting cleanup and remove non-ANSI declsdkf2005-10-171-160/+185
|
* Style cleanup and removal of non-ANSI declsdkf2005-10-171-540/+596
|
* Undo accidental checkindkf2005-10-122-7/+2
|
* Arrange the test suite so that it only accesses images in the same directory.dkf2005-10-122-2/+7
| | | | This enables packaging of the test suite as a starkit.
* * generic/tkConfig.c (Tk_DeleteOptionTable, Tk_CreateOptionTable):hobbs2005-10-101-3/+3
| | | | properly alloc/delete one more option. [Bug 1319720] (melbardis)
* * macosx/tkMacOSXInt.h: Move MODULE_SCOPE defn to tkInt.h and addhobbs2005-10-101-1/+40
| | | | | * generic/tkInt.h: WORDS_BIGENDIAN checks that will work with OS X universal binary compiles. (steffen)
* * generic/tkMenu.c (TkSetWindowMenuBar): do not call TkMenuInit ifhobbs2005-10-101-2/+10
| | | | | | the winPtr indicates TK_ALREADY_DEAD. This prevents reinit that creates a Tk exit handler after all exit handlers should be called. [Bug 749908, 1322294]
* whitespace changes onlyhobbs2005-10-101-201/+199
|
* tip256 implementationvincentdarley2005-10-109-132/+226
|
* * unix/tkUnixPort.h: Disabled inclusion of the private Tcl headerdgp2005-09-281-3/+23
| | | | | | | | | | * win/tkWinPort.h: file tclInt.h. Tk ought to have a tiny and shrinking number of calls of private Tcl routines. Each Tk source file doing this should follow the convention in the macosx port and have its own #include "tclInt.h". * generic/tkEvent.c: Disabled calls to private Tcl routine TclInExit(). See comment in TkCreateExitHandler() for full rationale.
* Regendkf2005-09-214-440/+472
|
* Tk-internal exit handler improvements. [Bug 749908]dkf2005-09-214-2137/+1773
|
* Get rid of constness warningdkf2005-09-141-3/+6
|
* Oops, varnames were not completely regularized.dkf2005-09-141-11/+10
|
* Fix for [1288128]dkf2005-09-141-88/+134
|
* Whitespace/style improvementsdkf2005-09-082-1153/+1253
|
* Added missing FF charsdkf2005-09-061-4/+4
|
* Formatting Systematizationdkf2005-08-181-797/+782
|
* Formatting systematizationdkf2005-08-181-387/+379
|
* Style systematizationdkf2005-08-161-682/+667
|
* Fixed bug # 1258604chengyemao2005-08-131-2/+5
|
* typo fixesdkf2005-08-121-5/+5
|
* Fix for [749908] that localizes the changes within a single file and alsodkf2005-08-121-476/+583
| | | | allows third-party code to work.
* oopsdgp2005-08-111-2/+2
|
* more errors found by the compilerdgp2005-08-112-15/+12
|
* assorted typos and errors caught by compilerdgp2005-08-113-7/+9
|
* Getting more systematic about styledkf2005-08-1023-13282/+13397
| | | | | Also start removing _ANSI_ARGS_; the core's required ANSI C for a while now Also fix [Bug 1252702]; size_t doesn't mix with Tcl_GetStringFromObj
* * macosx/tkMacOSXCarbonEvents.c (AppEventHandlerProc): handle carbondas2005-08-095-14/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/tkMacOSXInt.h: declare macosx internal procs as MODULE_SCOPE. * macosx/tkMacOSXCarbonEvents.c: * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXFont.c: * macosx/tkMacOSXHLEvents.c: * macosx/tkMacOSXInit.c: * macosx/tkMacOSXWindowEvent.c * library/bgerror.tcl: sync with core-8-4-branch changes of 2005-07-28. * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXMouseEvent.c: * generic/tkFrame.c: sync with core-8-4-branch changes of 2005-07-27. * generic/tkIntDecls.h: * generic/tkStubInit.c: * generic/tkFrame.c: * win/tkWinDraw.c: * unix/tkUnixDraw.c: * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXInt.h: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXButton.c: sync with core-8-4-branch. * macosx/tkMacOSXEntry.c: * macosx/tkMacOSXScale.c: * library/demos/menu.tcl: removed errant '}'.
* Oops, missed a few spotsdkf2005-07-291-48/+43
|