summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Bumped version number to 8.4.0hobbs2002-09-021-4/+4
|
* * generic/tkCmds.c:hobbs2002-09-022-9/+30
| | | | | | | * generic/tkWindow.c: made 'tk' available in safe interpreters, but only the caret and windowingsystem subcommands may be called. * tests/safe.test (safe-1.2): noted that tk is now available in safe interps, but not the appname/scaling subcommands.
* added int cast to prevent warninghobbs2002-09-021-2/+3
|
* added size_t cast to prevent warninghobbs2002-09-021-2/+2
|
* *** macosx-8-4-branch merged into the mainline [tcl patch #602770] ***macosx_8_4_merge_2002_08_31_trunkdas2002-08-3122-285/+2224
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tk.decls: * generic/tkInt.decls: added new "aqua" specific entries to the stubs tables. Changed all "unix" entries to "x11" to allow us to distinguish and build both "aqua" on MacOSX and "x11" on MacOSX. * generic/tk.h: added a #ifnded RESOURCE_INCLUDED so that tk.h can be passed to the resource compiler. * generic/tkCmds.c (Tk_TkObjCmd): added [tk windowingsystem] subcommand: returns "x11" when running on X11, "win32" on Windows, "classic" on MacOS9 and "aqua" on MacOSX Aqua (i.e. Carbon) * generic/tkFont.c (TkFontGetFirstTextLayout): new private function returning the first chunk of a Tk_TextLayout, i.e. until the first font change on the first line (or the whole first line if there is no such font change). * generic/tkMain.c: made Tcl_ThreadDataKey static * library/demos/puzzle.tcl: fixed button metrics for aqua * tests/cursor.test: check for presence of arrow cursor instead of heart cursor * xlib/xcolors.c: changed xColors static initialization to more standard C * macosx/Wish.pbproj/jingham.pbxuser (new): * macosx/Wish.pbproj/project.pbxproj (new): project for Apple's ProjectBuilder IDE. * macosx/Makefile (new): simple makefile for building the project from the command line via the ProjectBuilder tool 'pbxbuild'. * macosx/tkMacOSXAppInit.c (new): macosx specific AppInit looking for a AppMain.tcl file in its bundled Resources/Scripts folder. If present, argv[1] is set to that file and the Scripts folder is added to the auto_path. This allows tk apps to embed scripts within their bundle directory structure. * macosx/tkMacOSXInit.c (new): macosx adapted version of tkUnixInit.c: we initialize & cache the Carbon native encoding (e.g. 'macRoman') and try to find the tk script library files inside Tk packaged as a framework. * macosx/tkMacOSXNotify.c (new): new macosx specific merged Carbon/select-based notifier. * macosx/tkMacOSXEvent.c (new): * macosx/tkMacOSXEvent.h (new): * macosx/tkMacOSXKeyEvent.c (new): * macosx/tkMacOSXMouseEvent.c (new): * macosx/tkMacOSXWindowEvent.c (new): new macosx specific event handling functionality. * macosx/tkMacOSX.h (new): * macosx/tkMacOSXBitmap.c (new): * macosx/tkMacOSXButton.c (new): * macosx/tkMacOSXClipboard.c (new): * macosx/tkMacOSXColor.c (new): * macosx/tkMacOSXConfig.c (new): * macosx/tkMacOSXCursor.c (new): * macosx/tkMacOSXDefault.h (new): * macosx/tkMacOSXDialog.c (new): * macosx/tkMacOSXDraw.c (new): * macosx/tkMacOSXEmbed.c (new): * macosx/tkMacOSXFont.c (new): * macosx/tkMacOSXHLEvents.c (new): * macosx/tkMacOSXInt.h (new): * macosx/tkMacOSXKeyboard.c (new): * macosx/tkMacOSXMenu.c (new): * macosx/tkMacOSXMenubutton.c (new): * macosx/tkMacOSXMenus.c (new): * macosx/tkMacOSXPort.h (new): * macosx/tkMacOSXRegion.c (new): * macosx/tkMacOSXScale.c (new): * macosx/tkMacOSXScrlbr.c (new): * macosx/tkMacOSXSubwindows.c (new): * macosx/tkMacOSXTest.c (new): * macosx/tkMacOSXUtil.c (new): * macosx/tkMacOSXUtil.h (new): * macosx/tkMacOSXWm.c (new): * macosx/tkMacOSXWm.h (new): * macosx/tkMacOSXXStubs.c (new): macosx ports of classic mac Tk implementation in tk/mac. * macosx/tkMacOSXSend.c (new): only send to local interp implemented currently. * macosx/tkMacOSXDebug.h (new): * macosx/tkMacOSXDebug.c (new): new macosx specific functions for debugging MacOS events, regions, etc. * macosx/tkAboutDlg.r (new): * macosx/tkMacOSXApplication.r (new): * macosx/tkMacOSXCursors.r (new): * macosx/tkMacOSXLibrary.r (new): * macosx/tkMacOSXMenu.r (new): * macosx/tkMacOSXResource.r (new): * macosx/tkMacOSXXCursors.r (new): * macosx/tclets.r (new): sources for Rez resource compiler. * macosx/Wish.icns (new): Wish application icon. * generic/tk.h: * generic/default.h: * generic/tkBind.c: * generic/tkCmds.c: * generic/tkGrab.c: * generic/tkPointer.c: * generic/tkPort.h: * generic/tkSelect.c: * generic/tkStubLib.c: * generic/tkTest.c: * generic/tkText.c: * generic/tkWindow.c: * unix/tkUnix3d.c: * xlib/xgc.c: * xlib/X11/X.h: * xlib/X11/Xlib.h: * xlib/X11/Xutil.h: added #includes and #ifdefs for macosx * library/bgerror.tcl: * library/button.tcl: * library/console.tcl: * library/dialog.tcl: * library/entry.tcl: * library/listbox.tcl: * library/menu.tcl: * library/msgbox.tcl: * library/scrlbar.tcl: * library/spinbox.tcl: * library/text.tcl: * library/tk.tcl: * library/demos/menu.tcl: * library/demos/menubu.tcl: * library/demos/widget: check [tk windowingsystem] instead of and/or in addition to $tcl_platform(platform). * generic/tkInt.h: * mac/tkMacBitmap.c: * mac/tkMacWm.c: added missing CONSTification * generic/tkIntDecls.h: * generic/tkIntPlatDecls.h: * generic/tkIntXlibDecls.h: * generic/tkPlatDecls.h: * generic/tkStubInit.c: regen
* * README: Bumped version number to 8.4b3 to distinguishmacosx_8_4_merge_2002_08_20_trunkdgp2002-08-201-3/+6
| | | | | | | | | | | | | | * generic/tk.h: HEAD from the 8.4b2 release. * unix/configure.in: * win/configure.in: * unix/tk.spec: * unix/configure: autoconf * win/configure: * generic/tk.h: Added compile-time check that the tcl.h header file #included by Tk 8.4 is one from Tcl 8.4. This is needed to be sure that new #defines like CONST84 are available. [Bug 597432].
* * generic/tkButton.c (TkButtonWorldChanged): added GCFont handlinghobbs2002-08-081-1/+4
| | | | | to the disabledGc of buttons when compound != none. The drawing appears to be incorrect across platforms still. [Bug #477740]
* * generic/tkImgGIF.c (FileReadGIF): fixed -from handling for gifshobbs2002-08-081-5/+5
| | | | [Bug #467524] (obermeier)
* * generic/tkCanvUtil.c (TkSmoothParseProc): recognize the built-inhobbs2002-08-081-1/+8
| | | | | | bezier method by name. [Bug #578654] * doc/canvas.n: update to note that -smooth really doesn't take or return just booleans.
* * generic/tkPanedWindow.c (Tk_PanedWindowObjCmd):hobbs2002-08-081-2/+2
| | | | | | * library/panedwindow.tcl: changed class from PanedWindow to Panedwindow to not conflict with existing bwidgets, but also to be more regular with other names used in the core.
* Made panedwindow tests all work again; I'm fairly sure the current behaviour ↵dkf2002-08-061-6/+17
| | | | is still not right, but it is definitely better than it was when I first started tinkering with the panedwindow in that now it at least picks a sensible size in one dimension when working with widgets whose size is not known immediately.
* Applied companion patch for Tcl Patch 585105,dgp2002-08-0561-570/+615
| | | | | | | | | | | | | | | | | | | | | updating Tk to use Tcl 8.4's fully CONST-ified interface, and fully CONSTifying Tk at the same time. This patch includes purging Tk of its last direct access to interp->result. [Bug 589853] The substantial changes include copying event sequence strings into Tcl_DStrings in tkBind.c, and copying [text] indices into Tcl_DStrings because parsing them involved overwriting them. If this causes performance trouble, that can be resolved by further converting them to Tcl_Obj's. The #defines USE_NON_CONST and USE_COMPAT_CONST have the same effect for Tk as they do for Tcl. (They actually change tcl.h)
* Stopped a potential core dump from happening when a idle event outlives its ↵dkf2002-08-021-2/+5
| | | | clientdata.
* Postpone paned-window layout arrangement on geometry event until idle,dkf2002-07-311-3/+6
| | | | | | | as is done in other window managers, to fix problems with size calculations when the children don't already know their sizes anyway. Now the layout of the vertical pane demo works better (overall initial window width is right!)
* Objectifed wm. [Patch #564521]pspjuth2002-07-252-5/+6
|
* * tests/spinbox.test: added spinbox-22.[1-3]hobbs2002-07-251-15/+24
| | | | | | * generic/tkEntry.c (ConfigureEntry): made the textvariable value take precedence over changed -from/-to values, unless it must be constrained. [Bug #559078]
* * tests/canvas.test: added canvas-14.[1-6]hobbs2002-07-241-18/+16
| | | | | | | * generic/tkCanvas.c (CanvasWidgetCmd): corrected handling of 'scan' subcommand args. Also removed early return cases to goto done instead where the canvasPtr would be Tcl_Release'd. This may solve other problems with unreleased canvasPtr's. [Bug #581560]
* * generic/tkText.c (TextEditUndo): set isDirtyIncrement to -1 whenhobbs2002-07-241-14/+16
| | | | reverting to note proper "dirtiness". [Bug #580362] (callewaert)
* * generic/tkEntry.c (DisplayEntry): correct cursor position beforehobbs2002-07-241-3/+3
| | | | calling Tk_SetCaretPos. (yamamoto)
* corrected reversed logic in assert -> panic conversiondgp2002-07-171-3/+1
|
* * generic/tkFont.c (TkFontPkgFree): Call panic insteadmdejong2002-07-161-6/+3
| | | | | of assert since assert is not used in the rest of Tk. [Tk bug 579651]
* * Fixes for [Bug 581627].dgp2002-07-151-5/+7
| | | | | | | | * generic/tkTest.c: Test commands not supported on non-Unix platforms should not be defined there in the first place. * tests/constraints.tcl: Fixed "secureserver" constraint. * tests/unixWm.test: Some tests needed "unix" constraint. * win/tkWinWm.c: Typo in error message.
* * Bumped HEAD to version 8.4b2 in order to distinguish it fromdgp2002-07-141-3/+3
| | | | | the 8.4b1 release. Also extended LOCALES to cover all message catalogs.
* tests/visual_vv.test: Removed some dependence on [exec]ed utilitiesdkf2002-07-111-41/+129
| | | | | | generic/tkImgPhoto.c: Allowed photo image buffer allocation to fail more tests/imgPhoto.test: gracefully in some cicumstances. The remaining ones require API changes before they can fail nicely.
* * generic/tkTest.c: Removed unused dependence on TclThread_Init()dgp2002-07-091-8/+1
| | | | * tests/defs.tcl: and [testthread]. [Bug 578165, Tcl Bug 531413]
* incorrect <eol> fixed.davygrvy2002-06-261-1663/+1663
|
* Fixed potential buffer overflow from patch#546910a_kovalenko2002-06-261-2/+2
|
* Applied patch #546910 -- international postscript outputa_kovalenko2002-06-252-342/+57
|
* * generic/tkGrid.c (GridReqProc): check that gridPtr is not NULLhobbs2002-06-221-2/+2
| | | | (may be when embedded). [Bug #548791] (halliday)
* * generic/tkFont.c (TkFontPkgFree): changed panic on freeing fontshobbs2002-06-221-1/+8
| | | | to an assert, and wrapped panic in #ifdef PURIFY. [Bug #568701]
* * doc/text.n: TIP #93 implementation thathobbs2002-06-222-39/+229
| | | | | | | * generic/tkText.c (TextWidgetCmd): enhances the text get and * generic/tkTextIndex.c (TkTextGetIndex): delete methods to accept * tests/text.test: multiple range pairs. This handles the delete case in an atomic, fixed-index fashion.
* Tk patchlevel bumped to 8.4b1 in preparation for release.dkf2002-06-221-4/+4
|
* * doc/text.n: TIP #104 implementation which generalizes thehobbs2002-06-214-272/+625
| | | | | | | | | | | | | | | * generic/tkText.c: undo/redo stack to not be tied solely to the * generic/tkText.h: text widget. The APIs are still private. * generic/tkUndo.c: This also adds a stack limiting ability and * generic/tkUndo.h: a -maxundo option to the text widget (in * library/text.tcl: addition to the options from TIP #26) should * mac/tkMacDefault.h: users want to limit the undo/redo stack * tests/text.test: (should not be necessary in most cases). * unix/Makefile.in: [Patch #554763] (callewart) * unix/tkUnixDefault.h: * win/Makefile.in: * win/makefile.vc: * win/tkWinDefault.h:
* * doc/listbox.n:hobbs2002-06-211-28/+108
| | | | | | | | * generic/tkListbox.c (DisplayListbox): * mac/tkMacDefault.h: TIP #94 implementation adding -activestyle * tests/listbox.test: option to the listbox. This adds the ability * unix/tkUnixDefault.h: to have listboxes look native on Windows, and * win/tkWinDefault.h: "nicer" elsewhere using the 'dotbox' style.
* Corrected the test for grid propagate change. [Bug #571433]pspjuth2002-06-201-3/+4
|
* * tests/panedwindow.test:hobbs2002-06-191-61/+7
| | | | | * generic/tkPanedWindow.c: ensure that sash index is lower bounds checked. [Bug #548727]
* * generic/tkClipboard.c (TkClipCleanup): Add codemdejong2002-06-191-1/+2
| | | | | | to set dispPtr->clipWindow to NULL, this was accidently removed by last commit. Fixes a crash while running the tests under win32.
* * generic/tkBind.c (TkBindDeadWindow):mdejong2002-06-196-16/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle case where Tk_DestroyWindow is invoked on clipboard and send windows. * generic/tkClipboard.c (TkClipCleanup): Invoke Tk_DestroyWindow to cleanup the dispPtr->clipWindow. Call Tcl_Preserve and Tcl_Release on the window to avoid an invalid memory ref on shutdown. * generic/tkEvent.c (Tk_HandleEvent): Panic if XCreateIC is invoked twice for the same window. This should never happen, the check were just added to make sure it does not since this could lead to crashes in XCloseIM. * generic/tkFocus.c (TkFocusDeadWindow): Handle case where Tk_DestroyWindow is invoked on clipboard and send windows. * generic/tkOption.c (TkOptionDeadWindow): Ditto. * generic/tkWindow.c (TkCloseDisplay): Move deletion of dispPtr->winTable after TkpCloseDisplay call since Tk_DestroyWindow uses it and could be called by TkpCloseDisplay for clipboard/send windows. Also invoke ckfree for the dispPtr instead of doing it in TkpCloseDisplay. (Tk_DestroyWindow): Check for a null winPtr->mainPtr before doing certain cleanup tasks so the we can invoke Tk_DestroyWindow on clipboard and send windows. We need to do this so that XDestroyIC will get invoked for the input contexts of each window. * mac/tkMacXStubs.c (TkpCloseDisplay): Don't free the displayPtr since this is now done in TkCloseDisplay. * unix/tkUnixEvent.c (TkpCloseDisplay, OpenIM): Remove conditional compilation around calls to XCloseIM since I am confident that the crashes related to input contexts has been fixed. Don't free the displayPtr since this is now done in TkCloseDisplay. * unix/tkUnixSend.c (TkSendCleanup): Invoke the Tk_DestroyWindow method to cleanup the special send window. This will call XDestroyIC and thereby avoid a crash in XCloseIM. The send window needs to be Tcl_Preserve and Tcl_Release to avoid an invalid memory ref on shutdown. * win/tkWinX.c (TkpCloseDisplay): Don't free the displayPtr since this is now done in TkCloseDisplay.
* Added TIP#48 style engine implementationdkf2002-06-1810-209/+2303
| | | | Frederic Bonnet to supply docs+tests as soon as possible.
* * generic/tkImage.c (Tk_ImageObjCmd, DeleteImage): Callmdejong2002-06-181-1/+3
| | | | | | Tcl_Preserve and Tcl_Release for the masterPtr->winPtr window to avoid accessing memory that had already been deallocated in DeleteImage.
* Trims to support the removal of RESOURCE_INCLUDED from rcdavygrvy2002-06-181-3/+3
| | | | | | | | | | scripts from Tcl's accepted FR #565088. * generic/tk.h: Changed RESOURCE_INCLUDED to be RC_INVOKED as the RC tool defines this already by default. * win/rc/tk.rc: * win/rc/wish.rc: removed the #define RESOURCE_INCLUDED lines.
* * generic/tkCmds.c (Tk_TkObjCmd):hobbs2002-06-172-4/+101
| | | | | | | | | | * generic/tkInt.h (struct TkCaret): * mac/tkMacXStubs.c (Tk_SetCaretPos): * unix/tkUnixKey.c (TkpGetString, Tk_SetCaretPos): * win/tkWinX.c (Tk_SetCaretPos): * tests/tk.test: Added 'tk caret' implementation of TIP#96 * doc/SetCaret.3 (new): which adds a TkCaret structure element to * doc/tk.n: TkDisplay for maintaining state.
* Initial implementation of TIP #82: added the -offrelief option todrh2002-06-172-2/+11
| | | | | checkbutton and radiobutton to allow those widgets to have a MS-Office look and feel.
* * generic/tkWindow.c (Tk_DestroyWindow): Set the pathNamemdejong2002-06-151-1/+8
| | | | | | | | component of a window to NULL after its memory has been deallocated to avoid a possible illegal memory access as a result of a call to Tk_PathName() on a Tk_Window structure of a window that has already been destroyed. [Tk bug 521946]
* * generic/tkOption.c (Tk_GetOption): Allocatemdejong2002-06-151-2/+2
| | | | | | memory with ckalloc not malloc. This keeps Tk from erroring out when built with TCL_MEM_DEBUG.
* removed stray characterdgp2002-06-151-2/+2
|
* * generic/tkBind.c (HandleEventGenerate):hobbs2002-06-152-7/+9
| | | | | * generic/tkInt.h: changed warpInProgress boolean from int to a bit in the flags variable (TK_DISPLAY_IN_WARP)
* corrected cast warninghobbs2002-06-151-2/+2
|
* * generic/tkCmds.c (Tk_TkObjCmd):hobbs2002-06-153-9/+17
| | | | | | | * unix/tkUnixKey.c (TkpGetString): * generic/tkEvent.c (Tk_HandleEvent): * generic/tkInt.h: changed useInputMethods boolean from int to a bit in the flags variable (TK_DISPLAY_USE_IM)
* * generic/tkInt.h:hobbs2002-06-152-11/+17
| | | | | | | * generic/tkCmds.c (Tk_WmObjCmd): * unix/tkUnixWm.c (Tk_WmCmd): * win/tkWinWm.c (Tk_WmCmd): changed wmTracing from being an int to just a bit in the flags variable (TK_DISPLAY_WM_TRACING)