summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Getting more systematic about styledkf2005-07-291-1074/+1075
|
* Remove unwanted tab from error info trace accidentally inserted during cleanupdkf2005-07-281-2/+2
| | | | Fixes [Bug 1246936]
* Getting more systematic about styledkf2005-07-251-2267/+2313
|
* fix to text widget 'mark prev' segfaultvincentdarley2005-07-181-2/+2
|
* * generic/tkConsole.c (TkConsolePrint): prevent potential NULL deref.das2005-06-231-2/+2
|
* Typosdkf2005-06-191-5/+5
|
* Get rid of statics; replaced with stack-allocated structures which are ↵dkf2005-06-191-657/+723
| | | | | | automatically thread-safe. Also squelched a buffer overrun in binary string data handling...
* Bumped patchleveldkf2005-06-071-3/+3
|
* On Mac OS X scrollwheel events are sent to the window under the mouse, notwolfsuit2005-06-031-3/+8
| | | | to the focus window.
* silence compiler warningdgp2005-06-011-2/+2
|
* * generic/tkPanedWindow.c, tests/panedwindow.test: batch of fixeshobbs2005-05-311-377/+297
| | | | | | | to panedwindow from Daniel South. Improved auto-size to fit internal windows, fixed sash placement at edge of pane, fixed calculation of stretch amount for internal windows. [Bug 1124198 1161543 1054117 1010941 795869 690169 1192323]
* * generic/tkMenu.c (MenuCmd): create event handler earlier tohobbs2005-05-311-37/+15
| | | | | ensure proper destruction of menu through DestroyNotify. [Bug 1159367]
* * generic/tkDecls.h:das2005-05-294-48/+26
| | | | | | | | | | | | | | | | | | * generic/tkIntPlatDecls.h: * generic/tkPlatDecls.h: * generic/tkStubInit.c: ran missing 'make genstubs' for TIP245 changes to tk.decls * macosx/tkMacOSXXStubs.c (Tk_ResetUserInactiveTime): use symbolic constant argument in call to UpdateSystemActivity(); * macosx/Wish.pbproj/project.pbxproj: * macosx/Wish.xcode/project.pbxproj: * unix/configure.in: added/corrected linking to IOKit.framework for TIP245. * unix/configure.in: skip X11 configure checks when building tk_aqua. * unix/configure: autoconf-2.59
* Partial implementation of TIP#245; thanks Reinhard!dkf2005-05-272-10/+56
|
* * generic/tkTest.c: disable commands not available on TkAqua.das2005-05-241-4/+4
|
* * generic/tkFileFilter.c (FreeGlobPatterns): s/null/NULL/hobbs2005-05-231-2/+2
|
* Parse all filters, not just the first one. [Bug 1206133]dkf2005-05-211-104/+92
|
* fix to two text widget bugsvincentdarley2005-05-131-8/+11
|
* * generic/tkTextDisp.c (GetXView): Improved numerical precisiondgp2005-05-101-3/+3
| | | | | | of calculation of [.t xview] return values. * tests/textDisp.test: Match greater precisions of [.t xview] and [.t yview] values in tests.
* fix to elide search and insertofftime 0 text widget bugsvincentdarley2005-04-041-37/+129
|
* Style&clarity fixesdkf2005-04-041-309/+315
|
* Fixed bug in geometry calculations forpspjuth2005-04-031-7/+12
| | | | | widgets that span multiple columns/row. Bug was introduced in 8.5a1 when fixing 792387. [Bug 1175092]
* Syntax/Style Guide fixesdgp2005-03-241-3/+8
|
* Get the Entry and Spinbox widgets to draw with the native look & feel onwolfsuit2005-03-242-348/+459
| | | | | | Mac OS X. Also contains some more work on tkMacOSXScale.c, but this doesn't work all the way yet, so it's not currently built.
* 2005-03-23 Jim Ingham <jingham@apple.com>wolfsuit2005-03-232-5/+6
| | | | | | | | | | | | | | | | | | This is cleanup thanks to Neil Madden <nem@cs.nott.ac.uk>. * macosx/tkMacOSXWm.c (TkMacOSXWinStyle) New function. (TkUnsupported1ObjCmd): New function, replaces the un-objectified version of the command. * generic/tkInt.h: Swap TkUnsupported1Cmd for TkUnsupported1ObjCmd. * generic/tkWindow.c (): Ditto. This adds a "-notify" flag to "wm attributes" that will bounce the dock icon on Mac OS X. This is from Revar Desmera <revarbat@gmail.com> * macosx/tkMacOSXWm.c (WmAttrGetNotifyStatus, WmAttrSetNotifyStatus): New functions. (WmAttributesCmd): Add the -notify. * doc/wm.n: Document -notify.
* Use Tcl_Set/GetAssocData to remove use of fragile Tcl_GetCommandInfodkf2005-03-191-35/+34
| | | | from TkConsolePrint. [Bug 1016385]
* fix for display lines bug and panicvincentdarley2005-03-151-9/+25
|
* Correct the InvokeClientMessageHandlers logic. [Bug 1162356]dkf2005-03-141-220/+235
| | | | Also many style fixups to approach the Engineering Manual.
* fix to newline eliding in text widgetvincentdarley2005-02-145-106/+402
|
* * generic/tkCanvBmap.c (ConfigureBitmap, ComputeBitmapBbox): Fixedhobbs2005-02-111-32/+58
| | | | | possible crash with disabled bmap and bbox handling [Bug 1119460] (BitmapToPostscript): made aware of various bitmap types
* Fix silly mistake. :^}dkf2005-02-071-4/+4
|
* D'ohdkf2005-02-031-2/+2
|
* Ensure that the canvas's static data is either protected by a mutex ordkf2005-02-031-56/+121
| | | | in a thread-local variable. [Bug 1114977]
* Doc fix [Bug 110553]dkf2005-01-311-8/+4
|
* D'oh!dkf2005-01-111-2/+2
|
* fix to text widget bugvincentdarley2005-01-111-4/+26
|
* Improved version of Michael Kirkham's fix for parsing pad values. [1098779]dkf2005-01-114-93/+115
|
* Correction of handling the return value of TkpUseWindowchengyemao2005-01-101-2/+2
|
* Changed to make platform implementation ready for a toplevel -use option; ↵chengyemao2005-01-091-4/+12
| | | | completed a full toplevel -use option configuration for Windows
* bug fix [1098779]chengyemao2005-01-091-1/+2
|
* Implemented TK_STAT message to support {wm state} for embedded windowchengyemao2005-01-072-2/+13
|
* Add missing Tcl_ResetResult [697915]dkf2005-01-071-1/+2
|